Lines Matching refs:devpath

136 	char *devpath = NULL;  in fmri_nvl2str()  local
156 err = nvlist_lookup_string(nvl, FM_FMRI_DEV_PATH, &devpath); in fmri_nvl2str()
157 if (err != 0 || devpath == NULL) in fmri_nvl2str()
192 topo_fmristr_build(&size, buf, buflen, devpath, in fmri_nvl2str()
239 char *devpath; in dev_fmri_str2nvl() local
281 eos = devpath = strchr(cur, '/'); in dev_fmri_str2nvl()
282 if (devpath == NULL || devpath == cur + 1) in dev_fmri_str2nvl()
333 cur = devpath; /* initial slash is NULled */ in dev_fmri_str2nvl()
338 devpath = cur; in dev_fmri_str2nvl()
354 *devpath = '/'; /* we NULed this earlier; put it back */ in dev_fmri_str2nvl()
357 while (*(devpath + 1) == '/') in dev_fmri_str2nvl()
358 devpath++; in dev_fmri_str2nvl()
360 err |= nvlist_add_string(fmri, FM_FMRI_DEV_PATH, devpath); in dev_fmri_str2nvl()
378 char *devpath = NULL; in dev_fmri_present() local
392 nvlist_lookup_string(in, FM_FMRI_DEV_PATH, &devpath) != 0) in dev_fmri_present()
397 if (devpath == NULL || strlen(devpath) == 0) in dev_fmri_present()
406 len = strlen(devpath) + strlen("/devices") + 1; in dev_fmri_present()
408 (void) snprintf(path, len, "/devices%s", devpath); in dev_fmri_present()
415 if (di_lookup_node(dnode, devpath) == DI_NODE_NIL) in dev_fmri_present()
424 else if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) in dev_fmri_present()
458 char *devpath = NULL; in dev_fmri_replaced() local
472 nvlist_lookup_string(in, FM_FMRI_DEV_PATH, &devpath) != 0) in dev_fmri_replaced()
477 if (devpath == NULL || strlen(devpath) == 0) in dev_fmri_replaced()
486 len = strlen(devpath) + strlen("/devices") + 1; in dev_fmri_replaced()
488 (void) snprintf(path, len, "/devices%s", devpath); in dev_fmri_replaced()
495 if (di_lookup_node(dnode, devpath) == DI_NODE_NIL) in dev_fmri_replaced()
504 else if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) in dev_fmri_replaced()
539 char *devpath = NULL; in dev_fmri_unusable() local
548 nvlist_lookup_string(in, FM_FMRI_DEV_PATH, &devpath) != 0) in dev_fmri_unusable()
551 if (devpath == NULL) in dev_fmri_unusable()
554 if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) { in dev_fmri_unusable()
586 char *devpath = NULL; in dev_fmri_service_state() local
595 nvlist_lookup_string(in, FM_FMRI_DEV_PATH, &devpath) != 0) in dev_fmri_service_state()
598 if (devpath == NULL) in dev_fmri_service_state()
601 if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) { in dev_fmri_service_state()