Home
last modified time | relevance | path

Searched refs:node (Results 51 – 75 of 973) sorted by relevance

12345678910>>...39

/illumos-gate/usr/src/lib/fm/topo/libtopo/common/
H A Dtopo_method.c48 topo_method_lookup(tnode_t *node, const char *name) in topo_method_lookup() argument
52 for (mp = topo_list_next(&node->tn_methods); mp != NULL; in topo_method_lookup()
55 topo_node_unlock(node); in topo_method_lookup()
69 topo_method_supported(tnode_t *node, const char *name, topo_version_t vers) in topo_method_supported() argument
73 topo_node_lock(node); in topo_method_supported()
74 for (mp = topo_list_next(&node->tn_methods); mp != NULL; in topo_method_supported()
78 topo_node_unlock(node); in topo_method_supported()
82 topo_node_unlock(node); in topo_method_supported()
112 set_methregister_error(topo_mod_t *mod, tnode_t *node, topo_imethod_t *mp, in set_methregister_error() argument
116 topo_list_delete(&node->tn_methods, mp); in set_methregister_error()
[all …]
/illumos-gate/usr/src/lib/libdiskmgt/common/
H A Dfindevs.c85 static bus_t *add_bus(struct search_args *args, di_node_t node,
88 di_node_t node, di_minor_t minor);
90 static int add_devs(di_node_t node, di_minor_t minor, void *arg);
97 static char *bus_type(di_node_t node, di_minor_t minor,
104 static char *ctype(di_node_t node, di_minor_t minor);
112 static char *get_byte_prop(char *prop_name, di_node_t node);
113 static di_node_t get_parent_bus(di_node_t node,
115 static int get_prom_int(char *prop_name, di_node_t node,
117 static char *get_prom_str(char *prop_name, di_node_t node,
119 static int get_prop(char *prop_name, di_node_t node);
[all …]
/illumos-gate/usr/src/cmd/hotplugd/
H A Dhotplugd_info.c245 hp_node_t node, port_node; in copy_hotplug() local
285 if ((node = new_hotplug_node(parent, hp)) == NULL) { in copy_hotplug()
291 node_list_add(&connections, node); in copy_hotplug()
295 if ((rv = copy_devices(node, child_dev, child_flags, in copy_hotplug()
296 &node->hp_child)) != 0) in copy_hotplug()
318 if ((node = new_hotplug_node(parent, hp)) == NULL) { in copy_hotplug()
324 node_list_add(&connections, node); in copy_hotplug()
336 if ((port_node = new_hotplug_node(node, in copy_hotplug()
350 node->hp_child = ports.head; in copy_hotplug()
395 search_cb(di_node_t node, void *arg) in search_cb() argument
[all …]
/illumos-gate/usr/src/psm/promif/ieee1275/common/
H A Dprom_boot.c36 pnode_t node; in prom_bootargs() local
43 node = prom_chosennode(); in prom_bootargs()
44 if ((node == OBP_NONODE) || (node == OBP_BADNODE)) in prom_bootargs()
45 node = prom_rootnode(); in prom_bootargs()
46 length = prom_getproplen(node, name); in prom_bootargs()
51 (void) prom_bounded_getprop(node, name, bootargs, length); in prom_bootargs()
68 pnode_t node; in prom_bootpath() local
74 node = prom_chosennode(); in prom_bootpath()
75 if ((node == OBP_NONODE) || (node == OBP_BADNODE)) in prom_bootpath()
76 node = prom_rootnode(); in prom_bootpath()
[all …]
/illumos-gate/usr/src/uts/common/fs/smbsrv/
H A Dsmb_fem.c163 smb_fem_fcn_install(smb_node_t *node) in smb_fem_fcn_install() argument
169 rc = fem_install(node->vp, smb_fcn_ops, (void *)node, OPARGUNIQ, in smb_fem_fcn_install()
175 smb_fem_fcn_uninstall(smb_node_t *node) in smb_fem_fcn_uninstall() argument
181 rc = fem_uninstall(node->vp, smb_fcn_ops, (void *)node); in smb_fem_fcn_uninstall()
186 smb_fem_oplock_install(smb_node_t *node) in smb_fem_oplock_install() argument
192 rc = fem_install(node->vp, smb_oplock_ops, (void *)node, OPARGUNIQ, in smb_fem_oplock_install()
198 smb_fem_oplock_uninstall(smb_node_t *node) in smb_fem_oplock_uninstall() argument
202 VERIFY0(fem_uninstall(node->vp, smb_oplock_ops, (void *)node)); in smb_fem_oplock_uninstall()
443 smb_node_t *node; in smb_fem_oplock_open() local
451 node = (smb_node_t *)(arg->fa_fnode->fn_available); in smb_fem_oplock_open()
[all …]
/illumos-gate/usr/src/uts/common/io/vscan/
H A Dvscan_svc.c633 vscan_svc_node_t *node; in vscan_svc_do_scan() local
639 node = &vscan_svc_nodes[idx]; in vscan_svc_do_scan()
645 node->vsn_access = VS_ACCESS_ALLOW; in vscan_svc_do_scan()
652 node->vsn_access = VS_ACCESS_DENY; in vscan_svc_do_scan()
691 vscan_svc_node_t *node; in vscan_svc_populate_req() local
695 node = &vscan_svc_nodes[idx]; in vscan_svc_populate_req()
696 req = node->vsn_req; in vscan_svc_populate_req()
702 scan_req->vsr_size = node->vsn_size; in vscan_svc_populate_req()
703 scan_req->vsr_modified = node->vsn_modified; in vscan_svc_populate_req()
704 scan_req->vsr_quarantined = node->vsn_quarantined; in vscan_svc_populate_req()
[all …]
/illumos-gate/usr/src/uts/common/io/scsi/adapters/iscsi/
H A Dpersistent.h63 boolean_t persistent_static_addr_set(char *node, entry_t *e);
64 boolean_t persistent_static_addr_next(void **v, char *node, entry_t *e);
78 boolean_t persistent_param_set(char *node, persistent_param_t *param);
79 boolean_t persistent_param_get(char *node, persistent_param_t *param);
80 boolean_t persistent_param_next(void **v, char *node,
82 boolean_t persistent_param_clear(char *node);
85 boolean_t persistent_chap_set(char *node, iscsi_chap_props_t *chap);
86 boolean_t persistent_chap_get(char *node, iscsi_chap_props_t *chap);
87 boolean_t persistent_chap_next(void **v, char *node,
89 boolean_t persistent_chap_clear(char *node);
[all …]
/illumos-gate/usr/src/lib/libdtrace/common/
H A Ddlink_audit.c72 obj_list_t *node; in la_objopen() local
78 if ((node = malloc(sizeof (obj_list_t))) == NULL) { in la_objopen()
82 node->ol_next = list; in la_objopen()
83 node->ol_name = strdup(lmp->l_name); in la_objopen()
84 node->ol_addr = lmp->l_addr; in la_objopen()
85 node->ol_lmid = lmid; in la_objopen()
86 list = node; in la_objopen()
111 obj_list_t *node = list; in la_activity() local
112 char *name = node->ol_name; in la_activity()
114 list = node->ol_next; in la_activity()
[all …]
/illumos-gate/usr/src/uts/common/io/1394/
H A Ds1394_hotplug.c53 static dev_info_t *s1394_create_devinfo(s1394_hal_t *hal, s1394_node_t *node,
115 s1394_create_devinfo(s1394_hal_t *hal, s1394_node_t *node, uint32_t *unit_dir, in s1394_create_devinfo() argument
150 " (node's GUID %08x%08x)", node->node_guid_hi, in s1394_create_devinfo()
151 node->node_guid_lo); in s1394_create_devinfo()
159 " (node's GUID %08x%08x)", node->node_guid_hi, in s1394_create_devinfo()
160 node->node_guid_lo); in s1394_create_devinfo()
175 root_dir = CFGROM_ROOT_DIR(node->cfgrom); in s1394_create_devinfo()
307 " (node's GUID %08x%08x)", node->node_guid_hi, in s1394_create_devinfo()
308 node->node_guid_lo); in s1394_create_devinfo()
321 reg[0] = node->node_guid_hi; in s1394_create_devinfo()
[all …]
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/
H A Dzfs_acl_chmod_owner_001_pos.ksh69 typeset node=$1
71 if [[ -z $node ]]; then
75 echo $(ls -dl $node | awk '{print $3}')
83 typeset node=$1
85 if [[ -z $node ]]; then
89 echo $(ls -dl $node | awk '{print $4}')
119 typeset node=$2
124 if [[ $user == "" || $node == "" ]]; then
128 su $user -c "chown $expect_owner $node"
130 new_owner=$(get_owner $node)
[all …]
H A Dzfs_acl_chmod_001_neg.ksh59 log_mustnot usr_exec chmod ${A}owner@:read_data:allow $node
60 log_mustnot usr_exec chmod A+ asd owner@:execute:deny $node
65 log_mustnot usr_exec chmod A+$tp:read_data:deny $node
73 typeset node=$1
76 cnt=$(count_ACE $node)
79 log_mustnot chmod A0- $node
81 log_must chmod A0- $node
92 typeset node=$1
96 cnt=$(count_ACE $node)
102 log_mustnot chmod A+owner@:read_data:allow $node
[all …]
/illumos-gate/usr/src/test/zfs-tests/cmd/btree_test/
H A Dbtree_test.c60 avl_node_t node; member
93 int_node_t *node; in verify_contents() local
101 node = avl_first(avl); in verify_contents()
104 node = avl_last(avl); in verify_contents()
108 while (node != NULL) { in verify_contents()
109 ASSERT3U(*data, ==, node->data); in verify_contents()
112 node = AVL_NEXT(avl, node); in verify_contents()
115 node = AVL_PREV(avl, node); in verify_contents()
121 verify_node(avl_tree_t *avl, zfs_btree_t *bt, int_node_t *node) in verify_node() argument
126 uint64_t data = node->data; in verify_node()
[all …]
/illumos-gate/usr/src/lib/libprtdiag/common/
H A Dpdevinfo_funcs.c114 dump_node(Prom_node *node) in dump_node() argument
122 node->props = NULL; in dump_node()
223 if (node->props == NULL) in dump_node()
224 node->props = new; in dump_node()
314 has_board_num(Prom_node *node) in has_board_num() argument
316 Prop *prop = node->props; in has_board_num()
337 get_board_num(Prom_node *node) in get_board_num() argument
339 Prop *prop = node->props; in get_board_num()
455 Prom_node *node; in dev_find_node() local
457 node = dev_find_node_by_type(root, "name", name); in dev_find_node()
[all …]
/illumos-gate/usr/src/cmd/zpool/
H A Dzpool_iter.c81 zpool_node_t *node = safe_malloc(sizeof (zpool_node_t)); in add_pool() local
84 node->zn_handle = zhp; in add_pool()
85 uu_avl_node_init(node, &node->zn_avlnode, zlp->zl_pool); in add_pool()
86 if (uu_avl_find(zlp->zl_avl, node, NULL, &idx) == NULL) { in add_pool()
90 free(node); in add_pool()
93 uu_avl_insert(zlp->zl_avl, node, idx); in add_pool()
96 free(node); in add_pool()
169 zpool_node_t *node, *next_node; in pool_list_iter() local
172 for (node = uu_avl_first(zlp->zl_avl); node != NULL; node = next_node) { in pool_list_iter()
173 next_node = uu_avl_next(zlp->zl_avl, node); in pool_list_iter()
[all …]
/illumos-gate/usr/src/lib/pkcs11/pkcs11_tpm/common/
H A Dutility.c41 DL_NODE *node = NULL; in dlist_add_as_first() local
45 node = (DL_NODE *)malloc(sizeof (DL_NODE)); in dlist_add_as_first()
46 if (! node) in dlist_add_as_first()
48 node->data = data; in dlist_add_as_first()
49 node->prev = NULL; in dlist_add_as_first()
50 node->next = list; in dlist_add_as_first()
52 list->prev = node; in dlist_add_as_first()
54 return (node); in dlist_add_as_first()
66 DL_NODE *node = NULL; in dlist_add_as_last() local
70 node = (DL_NODE *)malloc(sizeof (DL_NODE)); in dlist_add_as_last()
[all …]
H A Dtemplate.c425 DL_NODE * node = NULL; in template_attribute_find() local
430 node = tmpl->attribute_list; in template_attribute_find()
432 while (node != NULL) { in template_attribute_find()
433 a = (CK_ATTRIBUTE *)node->data; in template_attribute_find()
440 node = node->next; in template_attribute_find()
595 DL_NODE *node; in template_copy() local
600 node = src->attribute_list; in template_copy()
602 while (node) { in template_copy()
603 CK_ATTRIBUTE *attr = (CK_ATTRIBUTE *)node->data; in template_copy()
620 node = node->next; in template_copy()
[all …]
/illumos-gate/usr/src/cmd/fm/eversholt/common/
H A Dtree.c60 struct node *Props;
61 struct node *Lastprops;
62 struct node *Masks;
63 struct node *Lastmasks;
64 struct node *Problems;
65 struct node *Lastproblems;
67 static struct node *Root;
107 stats_counter_add(Nodesize, sizeof (struct node)); in tree_init()
172 nodesize(enum nodetype t, struct node *ret) in nodesize()
174 int size = sizeof (struct node); in nodesize()
[all …]
/illumos-gate/usr/src/psm/stand/boot/sparc/common/
H A Dsun4dep.c46 pnode_t node; in setup_aux() local
54 node = prom_findnode_bydevtype(prom_rootnode(), OBP_CPU); in setup_aux()
55 if (node != OBP_NONODE && node != OBP_BADNODE) { in setup_aux()
58 if ((nlen = prom_getproplen(node, OBP_NAME)) <= 0 || in setup_aux()
60 prom_getprop(node, OBP_NAME, cpubuf) <= 0) in setup_aux()
69 if ((clen = prom_getproplen(node, OBP_COMPATIBLE)) > 0 || in setup_aux()
70 ((node = prom_parentnode(node)) != OBP_NONODE && in setup_aux()
71 node != OBP_BADNODE && in setup_aux()
72 (clen = prom_getproplen(node, OBP_COMPATIBLE)) > 0 && in setup_aux()
73 prom_getprop(node, OBP_DEVICETYPE, dname) > 0 && in setup_aux()
[all …]
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/
H A Dsvcctl_scm.c440 svcctl_svc_node_t *node = NULL; in svcctl_scm_cb_list_svcinst() local
444 node = malloc(sizeof (*node)); in svcctl_scm_cb_list_svcinst()
445 if (node == NULL) in svcctl_scm_cb_list_svcinst()
448 node->sn_fmri = NULL; in svcctl_scm_cb_list_svcinst()
449 if (svcctl_scm_get_svcfmri(mgr_ctx, &node->sn_fmri, wip) != 0) in svcctl_scm_cb_list_svcinst()
452 node->sn_name = NULL; in svcctl_scm_cb_list_svcinst()
453 if (svcctl_scm_get_svcname(&node->sn_name, node->sn_fmri) != 0) in svcctl_scm_cb_list_svcinst()
456 node->sn_desc = NULL; in svcctl_scm_cb_list_svcinst()
457 if (svcctl_scm_get_svcdesc(mgr_ctx, &node->sn_desc, wip) != 0) in svcctl_scm_cb_list_svcinst()
460 node->sn_state = NULL; in svcctl_scm_cb_list_svcinst()
[all …]
/illumos-gate/usr/src/lib/libhotplug/common/
H A Dlibhotplug.h81 int hp_type(hp_node_t node);
82 char *hp_name(hp_node_t node);
83 char *hp_usage(hp_node_t node);
84 int hp_state(hp_node_t node);
85 char *hp_description(hp_node_t node);
86 time_t hp_last_change(hp_node_t node);
87 hp_node_t hp_parent(hp_node_t node);
88 hp_node_t hp_child(hp_node_t node);
89 hp_node_t hp_sibling(hp_node_t node);
90 int hp_path(hp_node_t node, char *path, char *connection);
[all …]
/illumos-gate/usr/src/uts/sun4u/os/
H A Dfillsysinfo.c354 get_portid(pnode_t node, pnode_t *cmpp) in get_portid() argument
364 if (GETPROP(node, "portid", (caddr_t)&portid) != -1) in get_portid()
366 if (GETPROP(node, "upa-portid", (caddr_t)&portid) != -1) in get_portid()
368 if (GETPROP(node, "device_type", (caddr_t)&dev_type) == -1) in get_portid()
379 cpu_parent = node = prom_parentnode(node); in get_portid()
381 if (node == OBP_NONODE || node == OBP_BADNODE) in get_portid()
383 if (GETPROP(node, "portid", (caddr_t)&portid) != -1) { in get_portid()
388 node = prom_parentnode(node); in get_portid()
441 fill_cpu(pnode_t node) in fill_cpu() argument
455 if ((portid = get_portid(node, &cmpnode)) == -1) { in fill_cpu()
[all …]
/illumos-gate/usr/src/cmd/devfsadm/
H A Ddisk_link.c66 static int disk_callback_chan(di_minor_t minor, di_node_t node);
67 static int disk_callback_nchan(di_minor_t minor, di_node_t node);
68 static int disk_callback_blkdev(di_minor_t minor, di_node_t node);
69 static int disk_callback_wwn(di_minor_t minor, di_node_t node);
70 static int disk_callback_xvmd(di_minor_t minor, di_node_t node);
71 static int disk_callback_fabric(di_minor_t minor, di_node_t node);
72 static int disk_callback_sas(di_minor_t minor, di_node_t node);
73 static void disk_common(di_minor_t minor, di_node_t node, char *disk,
75 static char *diskctrl(di_node_t node, di_minor_t minor);
76 static int reserved_links_exist(di_node_t node, di_minor_t minor, int nflags);
[all …]
/illumos-gate/usr/src/lib/libbrand/common/
H A Dlibbrand.c220 xmlNodePtr node; in brand_open() local
261 if ((node = xmlDocGetRootElement(bhp->bh_config)) == NULL) { in brand_open()
266 if (xmlStrcmp(node->name, DTD_ELEM_BRAND) != 0) { in brand_open()
271 if ((property = xmlGetProp(node, DTD_ATTR_NAME)) == NULL) { in brand_open()
382 xmlNodePtr node; in brand_get_value() local
389 if ((node = xmlDocGetRootElement(bhp->bh_config)) == NULL) in brand_get_value()
392 if (xmlStrcmp(node->name, DTD_ELEM_BRAND) != 0) in brand_get_value()
395 for (node = node->xmlChildrenNode; node != NULL; in brand_get_value()
396 node = node->next) { in brand_get_value()
397 if (xmlStrcmp(node->name, tagname) == 0) in brand_get_value()
[all …]
/illumos-gate/usr/src/cmd/prtconf/
H A Dpdevinfo.c250 di_node_t target_node, node; in prtconf_devinfo() local
268 node = target_node; in prtconf_devinfo()
269 while ((node = di_parent_node(node)) != DI_NODE_NIL) in prtconf_devinfo()
270 node_display_private_set(node); in prtconf_devinfo()
282 node = target_node; in prtconf_devinfo()
283 while ((node = di_parent_node(node)) != DI_NODE_NIL) in prtconf_devinfo()
311 i_find_target_node(di_node_t node, void *arg) in i_find_target_node() argument
318 if ((path = di_devfs_path(node)) == NULL) in i_find_target_node()
323 *target = node; in i_find_target_node()
331 while ((minor = di_minor_next(node, minor)) != DI_MINOR_NIL) { in i_find_target_node()
[all …]
/illumos-gate/usr/src/cmd/hal/hald/solaris/
H A Ddevinfo_storage.c58 HalDevice *devinfo_ide_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
59 static HalDevice *devinfo_ide_host_add(HalDevice *parent, di_node_t node, char *devfs_path);
60 static HalDevice *devinfo_ide_device_add(HalDevice *parent, di_node_t node, char *devfs_path);
61 static HalDevice *devinfo_ide_storage_add(HalDevice *parent, di_node_t node, char *devfs_path);
62 HalDevice *devinfo_scsi_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type);
63 static HalDevice *devinfo_scsi_storage_add(HalDevice *parent, di_node_t node, char *devfs_path);
64 HalDevice *devinfo_blkdev_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_typ…
65 static HalDevice *devinfo_blkdev_storage_add(HalDevice *parent, di_node_t node, char *devfs_path);
66 HalDevice *devinfo_floppy_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_typ…
67 static void devinfo_floppy_add_volume(HalDevice *parent, di_node_t node);
[all …]

12345678910>>...39