Home
last modified time | relevance | path

Searched refs:di_root (Results 1 – 7 of 7) sorted by relevance

/illumos-gate/usr/src/cmd/fuser/
H A Dfuser.c227 i_get_dev_path(f_user_t *f_user, char *drv_name, int major, di_node_t *di_root) in i_get_dev_path() argument
239 if (*di_root == DI_NODE_NIL) { in i_get_dev_path()
240 *di_root = di_init("/", DINFOSUBTREE | DINFOMINOR); in i_get_dev_path()
241 if (*di_root == DI_NODE_NIL) { in i_get_dev_path()
248 di_node = di_drv_first_node(drv_name, *di_root); in i_get_dev_path()
293 report_kernel(f_user_t *f_user, di_node_t *di_root) in report_kernel() argument
323 path = i_get_dev_path(f_user, modinfo.mi_name, major, di_root); in report_kernel()
377 di_node_t di_root = DI_NODE_NIL; in report() local
386 err = report_kernel(f_user, &di_root); in report()
393 if (di_root != DI_NODE_NIL) in report()
[all …]
/illumos-gate/usr/src/lib/libppt/common/
H A Dlibppt.c187 di_node_t di_root = DI_NODE_NIL; in ppt_list_assigned() local
195 if ((di_root = di_init("/", DINFOCACHE)) == DI_NODE_NIL) in ppt_list_assigned()
231 if ((di_node = di_lookup_node(di_root, (char *)path)) == NULL) { in ppt_list_assigned()
254 if (di_root != DI_NODE_NIL) in ppt_list_assigned()
255 di_fini(di_root); in ppt_list_assigned()
421 di_node_t di_root; in ppt_list() local
424 if ((di_root = di_init("/", DINFOCACHE)) == DI_NODE_NIL) in ppt_list()
438 if ((err = di_walk_node(di_root, DI_WALK_CLDFIRST, in ppt_list()
453 if (di_root != DI_NODE_NIL) in ppt_list()
454 di_fini(di_root); in ppt_list()
/illumos-gate/usr/src/cmd/stat/common/
H A Ddsr.c62 static di_node_t di_root; /* from di_init: for devid */ variable
100 if (di_root) { in cleanup_iodevs_snapshot()
101 di_fini(di_root); in cleanup_iodevs_snapshot()
102 di_root = DI_NODE_NIL; in cleanup_iodevs_snapshot()
191 if (di_root == DI_NODE_NIL) in drvinstpart2dev()
192 di_root = di_init("/", DINFOCACHE); in drvinstpart2dev()
193 if (di_root != NULL) { in drvinstpart2dev()
199 node = di_lookup_node(di_root, devicespath); in drvinstpart2dev()
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd_info.c140 di_node_t di_root; in copy_devinfo() local
144 if ((di_root = di_init(path, DINFOSUBTREE | DINFOHP)) == DI_NODE_NIL) in copy_devinfo()
150 (void) di_walk_node(di_root, DI_WALK_CLDFIRST, NULL, search_cb); in copy_devinfo()
158 rv = copy_hotplug(NULL, di_root, connection, flags, &hp_root); in copy_devinfo()
160 rv = copy_devices(NULL, di_root, flags, &hp_root); in copy_devinfo()
163 di_fini(di_root); in copy_devinfo()
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/
H A Ddr.c525 di_node_t di_root; in update_devices() local
527 if ((di_root = di_init("/", DINFOCPYALL)) == DI_NODE_NIL) in update_devices()
535 add_cpus(di_root); in update_devices()
540 remove_cpus(di_root); in update_devices()
543 di_fini(di_root); in update_devices()
/illumos-gate/usr/src/cmd/picl/plugins/common/devtree/
H A Dpicldevtree.c1063 di_node_t di_root; in get_path_state_name() local
1093 di_root = di_init("/", DINFOCACHE); in get_path_state_name()
1094 if (di_root == DI_NODE_NIL) { in get_path_state_name()
1097 di_node = di_lookup_node(di_root, devfs_path); in get_path_state_name()
1099 di_fini(di_root); in get_path_state_name()
1110 di_fini(di_root); in get_path_state_name()
1138 di_fini(di_root); in get_path_state_name()
1414 construct_picl_platform(picl_nodehdl_t rooth, di_node_t di_root, in construct_picl_platform() argument
1424 nodename = di_node_name(di_root); in construct_picl_platform()
1429 if (di_nodeid(di_root) == DI_PROM_NODEID || in construct_picl_platform()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dfindevs.c149 di_node_t di_root; in findevs() local
178 di_root = di_init("/", DINFOCACHE); in findevs()
179 (void) di_walk_minor(di_root, NULL, 0, args, add_devs); in findevs()
180 di_fini(di_root); in findevs()
182 di_root = di_init("/", DINFOCPYALL|DINFOPATH); in findevs()
183 (void) di_walk_minor(di_root, NULL, 0, args, add_devs); in findevs()
184 di_fini(di_root); in findevs()