Lines Matching defs:root

291 di_fini(di_node_t root)
300 if (root == DI_NODE_NIL) {
306 * The root contains its own offset--self.
307 * Subtracting it from root address, we get the starting addr.
311 pa = (caddr_t)root - DI_NODE(root)->self;
336 * If parent doesn't exist and node is not the root,
411 di_drv_first_node(const char *drv_name, di_node_t root)
419 if (root == DI_NODE_NIL) {
427 pa = (caddr_t)root - DI_NODE(root)->self;
546 * DI_NODE_NIL is parent of root, so it is
650 * This must be the root of the snapshot, so can't
782 di_walk_node(di_node_t root, uint_t flag, void *arg,
787 if (root == NULL) {
798 head->node = root;
801 di_node_name(root)));
853 di_walk_minor(di_node_t root, const char *minor_type, uint_t flag, void *arg,
859 char *devfspath = di_devfs_path(root);
864 if (root == NULL) {
875 head->node = root;
878 di_node_name(root)));
1084 * trace back to root, note the node_name & address
1098 * get the path to the root of snapshot
2085 * If parent doesn't exist and node is not the root,
2116 * If parent doesn't exist and node is not the root,
2364 di_vhci_first_node(di_node_t root)
2371 if (root == DI_NODE_NIL) {
2376 pa = (caddr_t)root - DI_NODE(root)->self;
3597 di_walk_link(di_node_t root, uint_t flag, uint_t endpoint, void *arg,
3603 char *devfspath = di_devfs_path(root);
3612 if ((root == DI_NODE_NIL) || (link_callback == NULL) || (flag != 0) ||
3624 head->node = root;
3627 di_node_name(root)));
3662 di_walk_lnode(di_node_t root, uint_t flag, void *arg,
3668 char *devfspath = di_devfs_path(root);
3676 if ((root == DI_NODE_NIL) || (lnode_callback == NULL) || (flag != 0)) {
3687 head->node = root;
3690 di_node_name(root)));
3745 di_lookup_node_impl(di_node_t root, char *devfspath)
3759 if (root == DI_NODE_NIL) {
3760 DPRINTF((DI_ERR, "root node is DI_NODE_NIL\n"));
3764 dap = DI_ALL((caddr_t)root - DI_NODE(root)->self);
3766 DPRINTF((DI_ERR, "snapshot root not / : %s\n", dap->root_path));
3775 for (slash = copy, node = root; slash; ) {
3834 di_lookup_node(di_node_t root, char *devfspath)
3839 node = di_lookup_node_impl(root, devfspath);
3845 curr = alias_to_curr(root, devfspath, &node);
3851 node = di_lookup_node_impl(root, curr);
3878 di_lookup_path(di_node_t root, char *devfspath)
3898 phci_node = di_lookup_node(root, copy);