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()
199 devpath, devid || tpl0id ? "/" : NULL, NULL)) { in fmri_nvl2str()
245 char *devpath; in dev_fmri_str2nvl() local
287 eos = devpath = strchr(cur, '/'); in dev_fmri_str2nvl()
288 if (devpath == NULL || devpath == cur + 1) in dev_fmri_str2nvl()
339 cur = devpath; /* initial slash is NULled */ in dev_fmri_str2nvl()
344 devpath = cur; in dev_fmri_str2nvl()
360 *devpath = '/'; /* we NULed this earlier; put it back */ in dev_fmri_str2nvl()
363 while (*(devpath + 1) == '/') in dev_fmri_str2nvl()
364 devpath++; in dev_fmri_str2nvl()
366 err |= nvlist_add_string(fmri, FM_FMRI_DEV_PATH, devpath); in dev_fmri_str2nvl()
383 char *devpath = NULL; in dev_fmri_present() local
397 nvlist_lookup_string(in, FM_FMRI_DEV_PATH, &devpath) != 0) in dev_fmri_present()
402 if (devpath == NULL || strlen(devpath) == 0) in dev_fmri_present()
411 len = strlen(devpath) + strlen("/devices") + 1; in dev_fmri_present()
413 (void) snprintf(path, len, "/devices%s", devpath); in dev_fmri_present()
420 if (di_lookup_node(dnode, devpath) == DI_NODE_NIL) in dev_fmri_present()
429 else if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) in dev_fmri_present()
462 char *devpath = NULL; in dev_fmri_replaced() local
476 nvlist_lookup_string(in, FM_FMRI_DEV_PATH, &devpath) != 0) in dev_fmri_replaced()
481 if (devpath == NULL || strlen(devpath) == 0) in dev_fmri_replaced()
490 len = strlen(devpath) + strlen("/devices") + 1; in dev_fmri_replaced()
492 (void) snprintf(path, len, "/devices%s", devpath); in dev_fmri_replaced()
499 if (di_lookup_node(dnode, devpath) == DI_NODE_NIL) in dev_fmri_replaced()
508 else if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) in dev_fmri_replaced()
542 char *devpath = NULL; in dev_fmri_unusable() local
551 nvlist_lookup_string(in, FM_FMRI_DEV_PATH, &devpath) != 0) in dev_fmri_unusable()
554 if (devpath == NULL) in dev_fmri_unusable()
557 if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) { in dev_fmri_unusable()
588 char *devpath = NULL; in dev_fmri_service_state() local
597 nvlist_lookup_string(in, FM_FMRI_DEV_PATH, &devpath) != 0) in dev_fmri_service_state()
600 if (devpath == NULL) in dev_fmri_service_state()
603 if ((dnode = di_init(devpath, DINFOCPYONE)) == DI_NODE_NIL) { in dev_fmri_service_state()