/illumos-gate/usr/src/lib/auditd_plugins/binfile/ |
H A D | binfile.c | 192 dirlist_t *node; in growauditlist() local 205 node = NULL; in growauditlist() 213 if (node == NULL) in growauditlist() 216 node->dl_flags = 0; in growauditlist() 217 node->dl_filename = NULL; in growauditlist() 218 node->dl_fd = -1; in growauditlist() 222 if (node->dl_dirname == NULL) in growauditlist() 238 node->dl_next = *listhead; in growauditlist() 240 node->dl_next = node; in growauditlist() 241 *node_p = node; in growauditlist() [all …]
|
/illumos-gate/usr/src/cmd/pcieadm/ |
H A D | pcieadm_devs.c | 397 pcieadm_show_devs_walk_cb(di_node_t node, void *arg) in pcieadm_show_devs_walk_cb() argument 411 path = di_devfs_path(node); in pcieadm_show_devs_walk_cb() 414 "%s", di_node_name(node)); in pcieadm_show_devs_walk_cb() 417 nprop = di_prop_lookup_ints(DDI_DEV_T_ANY, node, "reg", ®s); in pcieadm_show_devs_walk_cb() 432 oarg.psdo_driver = di_driver_name(node); in pcieadm_show_devs_walk_cb() 433 oarg.psdo_instance = di_instance(node); in pcieadm_show_devs_walk_cb() 532 nprop = di_prop_lookup_ints(DDI_DEV_T_ANY, node, in pcieadm_show_devs_walk_cb() 540 nprop = di_prop_lookup_ints(DDI_DEV_T_ANY, node, in pcieadm_show_devs_walk_cb() 548 nprop = di_prop_lookup_int64(DDI_DEV_T_ANY, node, in pcieadm_show_devs_walk_cb() 556 nprop = di_prop_lookup_int64(DDI_DEV_T_ANY, node, in pcieadm_show_devs_walk_cb() [all …]
|
/illumos-gate/usr/src/cmd/hotplugd/ |
H A D | hotplugd_rcm.c | 84 static int resource_callback(hp_node_t node, void *argp); 85 static int merge_callback(hp_node_t node, void *argp); 377 resource_callback(hp_node_t node, void *argp) in resource_callback() argument 385 type = hp_type(node); in resource_callback() 388 if ((type == HP_NODE_PORT) && HP_IS_OFFLINE(hp_state(node))) in resource_callback() 396 if (hp_path(node, arg->path, arg->connection) != 0) { in resource_callback() 448 merge_callback(hp_node_t node, void *argp) in merge_callback() argument 458 if (hp_type(node) != HP_NODE_DEVICE) in merge_callback() 502 usage->hp_parent = node; in merge_callback() 503 usage->hp_sibling = node->hp_child; in merge_callback() [all …]
|
/illumos-gate/usr/src/uts/intel/io/intel_nhm/ |
H A D | mem_addr.h | 38 extern uint64_t rankaddr_to_dimm(uint64_t rankaddr, int node, 41 extern uint64_t dimm_to_rankaddr(int node, int channel, 44 extern uint64_t rankaddr_to_phyaddr(int node, int log_chan, 46 extern uint64_t caddr_to_dimm(int node, int channel, uint64_t caddr,
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | ieee1394_link.c | 33 static int ieee1394_process(di_minor_t minor, di_node_t node); 75 ieee1394_process(di_minor_t minor, di_node_t node) in ieee1394_process() argument 81 devfspath = di_devfs_path(node); in ieee1394_process() 107 (void) devfsadm_mklink(l_path, node, minor, 0); in ieee1394_process()
|
H A D | zut_link.c | 37 static int zut(di_minor_t minor, di_node_t node); 54 zut(di_minor_t minor, di_node_t node) in zut() argument 57 (void) devfsadm_mklink(ZUT_DRIVER, node, minor, 0); in zut()
|
H A D | zfs_link.c | 37 static int zfs(di_minor_t minor, di_node_t node); 54 zfs(di_minor_t minor, di_node_t node) in zfs() argument 61 (void) devfsadm_mklink(ZFS_DRIVER, node, minor, 0); in zfs()
|
/illumos-gate/usr/src/psm/stand/cpr/common/ |
H A D | support.c | 97 pnode_t node; in cpr_reset_properties() local 122 node = prom_optionsnode(); in cpr_reset_properties() 123 if (node == OBP_NONODE || node == OBP_BADNODE) { in cpr_reset_properties() 143 if (prom_setprop(node, prop->name, prop->value, len + 1) < 0 || in cpr_reset_properties() 144 prom_getproplen(node, prop->name) != len) { in cpr_reset_properties()
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_ipmi/ |
H A D | fac_prov_ipmi.c | 373 pnode = topo_node_parent(node); in ipmi_sensor_state() 437 topo_node_name(node), topo_strerror(err)); in ipmi_sensor_state() 502 pnode = topo_node_parent(node); in ipmi_sensor_reading() 1748 topo_node_name(node), topo_node_instance(node), in get_entity_info() 1832 ei.ei_node = node; in ipmi_sensor_enum() 1891 refnode = topo_node_parent(node); in ipmi_entity() 1893 refnode = node; in ipmi_entity() 1968 dimm = topo_node_parent(node); in dimm_ipmi_entity() 1970 dimm = node; in dimm_ipmi_entity() 2031 cs = topo_node_parent(node); in cs_ipmi_entity() [all …]
|
/illumos-gate/usr/src/lib/libuuid/common/ |
H A D | uuid.c | 153 if (memcmp(&system_node, &data->state.node, sizeof (uuid_node_t)) != 0) in uuid_create() 185 uchar_t node[6]; in gen_ethernet_address() local 188 arc4random_buf(node, 6); in gen_ethernet_address() 189 (void) memcpy(system_node->nodeID, node, 6); in gen_ethernet_address() 206 uuid_time_t timestamp, uuid_node_t node) in format_uuid() argument 240 (void) memcpy(&uuid->node_addr, &node, sizeof (uuid->node_addr)); in format_uuid() 283 revalidate_data(uuid_node_t *node) in revalidate_data() argument 289 for (i = 0; i < sizeof (data->state.node.nodeID); i++) in revalidate_data() 290 data->state.node.nodeID[i] = 0; in revalidate_data() 294 gen_ethernet_address(node); in revalidate_data() [all …]
|
/illumos-gate/usr/src/uts/sun4u/io/ |
H A D | mc-us3i.c | 1446 node->prev = *tail; in mc_node_add() 1449 *tail = node; in mc_node_add() 1451 node->next = node->prev = NULL; in mc_node_add() 1471 *tail = node->prev; in mc_node_del() 1473 node->next->prev = node->prev; in mc_node_del() 1478 *head = node->next; in mc_node_del() 1480 node->prev->next = node->next; in mc_node_del() 1492 mc_dlist_t *node; in mc_node_get() local 1494 node = head; in mc_node_get() 1500 node = node->next; in mc_node_get() [all …]
|
/illumos-gate/usr/src/boot/efi/loader/ |
H A D | main.c | 88 EFI_DEVICE_PATH *devpath, *dp, *node; in efi_zfs_is_preferred() local 103 node = efi_devpath_last_node(devpath); in efi_zfs_is_preferred() 104 if (node == NULL) in efi_zfs_is_preferred() 512 EFI_DEVICE_PATH *node; in parse_uefi_con_out() local 530 node = (EFI_DEVICE_PATH *)buf; in parse_uefi_con_out() 531 while ((char *)node < ep) { in parse_uefi_con_out() 532 if (IsDevicePathEndType(node)) { in parse_uefi_con_out() 538 (DevicePathSubType(node) == ACPI_DP || in parse_uefi_con_out() 541 acpi = (void *)node; in parse_uefi_con_out() 549 uart = (void *)node; in parse_uefi_con_out() [all …]
|
/illumos-gate/usr/src/boot/efi/libefi/ |
H A D | devpath.c | 141 EFI_DEVICE_PATH *node, *copy; in efi_devpath_trim() local 144 if ((node = efi_devpath_last_node(devpath)) == NULL) in efi_devpath_trim() 146 prefix = (UINT8 *)node - (UINT8 *)devpath; in efi_devpath_trim() 149 len = prefix + DevicePathNodeLength(NextDevicePathNode(node)); in efi_devpath_trim() 153 node = (EFI_DEVICE_PATH *)((UINT8 *)copy + prefix); in efi_devpath_trim() 154 SetDevicePathEndNode(node); in efi_devpath_trim()
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_subr.c | 582 topo_pgroup_hcset(tnode_t *node, nvlist_t *auth) in topo_pgroup_hcset() argument 592 if (topo_pgroup_create(node, &auth_pgroup, &err) != 0) { in topo_pgroup_hcset() 600 if ((topo_prop_inherit(node, FM_FMRI_AUTHORITY, FM_FMRI_AUTH_PRODUCT, in topo_pgroup_hcset() 604 (void) topo_prop_set_string(node, FM_FMRI_AUTHORITY, in topo_pgroup_hcset() 612 (void) topo_prop_set_string(node, FM_FMRI_AUTHORITY, in topo_pgroup_hcset() 619 (void) topo_prop_set_string(node, FM_FMRI_AUTHORITY, in topo_pgroup_hcset() 623 if ((topo_prop_inherit(node, FM_FMRI_AUTHORITY, FM_FMRI_AUTH_SERVER, in topo_pgroup_hcset() 627 (void) topo_prop_set_string(node, FM_FMRI_AUTHORITY, in topo_pgroup_hcset() 632 if (topo_pgroup_create(node, &sys_pgroup, &err) != 0) in topo_pgroup_hcset() 636 (void) topo_prop_set_string(node, TOPO_PGROUP_SYSTEM, in topo_pgroup_hcset() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | check_syscall_arg_type.c | 60 struct symbol *node; in _typedef_lookup() local 65 node = lookup_symbol(id, NS_TYPEDEF); in _typedef_lookup() 66 if (!node || node->type != SYM_NODE) in _typedef_lookup() 68 return get_real_base_type(node); in _typedef_lookup()
|
/illumos-gate/usr/src/cmd/picl/plugins/lib/picld_pluginutil/ |
H A D | picld_pluginutil_impl.h | 106 node_cmd_t node; member 131 #define nodecmd_nodeh u.node.nodeh 132 #define nodecmd_nodename u.node.nodename 133 #define nodecmd_classname u.node.classname 134 #define nodecmd_classname u.node.classname
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | iexpr.c | 51 struct node *np; 69 iexpr_hash(struct node *np) in iexpr_hash() 137 iexpr_cmp(struct node *np1, struct node *np2) in iexpr_cmp() 230 struct node * 231 iexpr(struct node *np) in iexpr() 259 iexpr_free(struct node *np) in iexpr_free() 288 iexpr_cached(struct node *np) in iexpr_cached()
|
H A D | config.c | 204 addconfig(struct node *lhs, struct node *rhs, void *arg) in addconfig() 545 static struct node * 549 struct node *numn; in config_nodeize() 597 struct node * 601 struct node *np; in config_bydev_lookup() 623 struct node * 627 struct node *np; in config_bydevid_lookup() 649 struct node * 653 struct node *np; in config_bytp_lookup() 675 struct node * [all …]
|
/illumos-gate/usr/src/cmd/modload/ |
H A D | add_drv.c | 73 static int devfs_node(di_node_t node, void *arg); 79 static int clone(di_node_t node); 649 devfs_node(di_node_t node, void *arg) in devfs_node() argument 668 binding_name = di_binding_name(node); in devfs_node() 669 node_name = di_node_name(node); in devfs_node() 678 if (di_driver_ops(node) & DI_BUS_OPS) in devfs_node() 688 devfsnm = di_devfs_path(node); in devfs_node() 713 if (clone(node)) in devfs_node() 725 clone(di_node_t node) in clone() argument 841 if (readlink(node, linkbuf, MAXPATHLEN) == -1) in dev_node() [all …]
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/disk/ |
H A D | disk_common.c | 798 if ((path = di_devfs_path(node)) == NULL) { in dev_di_node_add() 906 while ((pnode = di_path_client_next_path(node, in dev_di_node_add() 979 if (di_prop_lookup_strings(DDI_DEV_T_ANY, node, in dev_di_node_add() 984 if (di_prop_lookup_strings(DDI_DEV_T_ANY, node, in dev_di_node_add() 989 if (di_prop_lookup_strings(DDI_DEV_T_ANY, node, in dev_di_node_add() 994 if (di_prop_lookup_strings(DDI_DEV_T_ANY, node, in dev_di_node_add() 1017 if (di_prop_lookup_int64(DDI_DEV_T_ANY, node, in dev_di_node_add() 1024 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, in dev_di_node_add() 1053 dev_walk_di_nodes(di_node_t node, void *arg) in dev_walk_di_nodes() argument 1067 di_prop_lookup_ints(DDI_DEV_T_ANY, node, in dev_walk_di_nodes() [all …]
|
/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb2_ofile.c | 59 smb_node_t *node; in smb2_ofile_getstd() local 64 node = of->f_node; in smb2_ofile_getstd() 66 (node->flags & NODE_FLAGS_DELETE_ON_CLOSE) != 0; in smb2_ofile_getstd() 67 qi->qi_isdir = smb_node_is_dir(node); in smb2_ofile_getstd()
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | boot_plat.c | 352 pnode_t node = prom_finddevice(devpath); in is_netdev() local 355 if ((node == OBP_NONODE) || (node == OBP_BADNODE)) in is_netdev() 357 if (prom_devicetype(node, "network") != 0) in is_netdev() 366 if (prom_devicetype(node, "ib") != 0) { in is_netdev() 396 pnode_t node; in mangle_os_bootpath() local 399 node = prom_finddevice(bpath); in mangle_os_bootpath() 400 if (prom_devicetype(node, "network") == 0) in mangle_os_bootpath()
|
/illumos-gate/usr/src/cmd/zfs/ |
H A D | zfs_main.c | 2616 uu_avl_node_init(node, &node->usn_avlnode, avl_pool); in userspace_cb() 2718 node = n; in userspace_cb() 2908 for (node = uu_avl_first(avl); node; node = uu_avl_next(avl, node)) { in print_us() 3117 node = uu_avl_next(avl_tree, node); in zfs_do_userspace() 3123 for (node = uu_list_first(list); node != NULL; in zfs_do_userspace() 3124 node = uu_list_next(list, node)) { in zfs_do_userspace() 4750 node); in fs_perm_fini() 4761 node); in fs_perm_fini() 4951 uu_list_node_init(node, &node->fspn_list_node, in parse_fs_perm_set() 5638 node = uu_list_next(fspset->fsps_list, node)) { in print_fs_perms() [all …]
|
/illumos-gate/usr/src/cmd/mdb/common/modules/libtopo/ |
H A D | libtopo.c | 456 tnode_t node; in dump_tnode() local 463 if (mdb_vread(&node, sizeof (node), addr) != sizeof (node)) { in dump_tnode() 467 if (mdb_readstr(buf, sizeof (buf), (uintptr_t)node.tn_name) < 0) { in dump_tnode() 469 node.tn_name); in dump_tnode() 477 parent, buf, node.tn_instance); in dump_tnode() 711 tnode_t node; in tpg_walk_init() local 718 if (mdb_vread(&node, sizeof (node), wsp->walk_addr) != sizeof (node)) { in tpg_walk_init() 723 wsp->walk_addr = (uintptr_t)node.tn_pgroups.l_next; in tpg_walk_init() 823 tnode_t node; in tnh_walk_init() local 831 if (mdb_vread(&node, sizeof (node), wsp->walk_addr) != sizeof (node)) { in tnh_walk_init() [all …]
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/ |
H A D | fcal_leds_thread.c | 45 static int get_drv_info(di_node_t node, led_dtls_t *dtls); 46 static int walk_disks(di_node_t node, led_dtls_t *dtls); 271 get_drv_info(di_node_t node, led_dtls_t *dtls) in get_drv_info() argument 297 DDI_DEV_T_ANY, node, HW_PROP_PORT, &port_data); in get_drv_info() 325 min_node = di_minor_next(node, DI_MINOR_NIL); in get_drv_info() 360 walk_disks(di_node_t node, led_dtls_t *dtls) in walk_disks() argument 374 for (node = di_drv_first_node(dtls->fcal_driver, node); in walk_disks() 375 node != DI_NODE_NIL; in walk_disks() 376 node = di_drv_next_node(node)) { in walk_disks() 377 char *dev_path = di_devfs_path(node); in walk_disks() [all …]
|