/illumos-gate/usr/src/lib/libhotplug/common/ |
H A D | libhotplug.c | 126 hp_node_t node; local 140 for (node = root; node != NULL; node = node->hp_sibling) 141 node->hp_basepath = NULL; 146 node = root; 147 while (node) { 148 sibling = node->hp_sibling; 149 if (node 171 hp_node_t node; local 211 hp_type(hp_node_t node) argument 230 hp_name(hp_node_t node) argument 254 hp_state(hp_node_t node) argument 280 hp_usage(hp_node_t node) argument 310 hp_description(hp_node_t node) argument 341 hp_last_change(hp_node_t node) argument 367 hp_parent(hp_node_t node) argument 391 hp_child(hp_node_t node) argument 415 hp_sibling(hp_node_t node) argument 440 hp_path(hp_node_t node, char *path, char *connection) argument 507 hp_set_state(hp_node_t node, uint_t flags, int state, hp_node_t *resultsp) argument 589 hp_set_private(hp_node_t node, const char *options, char **resultsp) argument 649 hp_get_private(hp_node_t node, const char *options, char **resultsp) argument 712 hp_node_t node; local 936 i_hp_pack_node(hp_node_t node, char **bufp, size_t *lenp) argument 995 hp_node_t node = NULL; local 1073 hp_node_t node; local [all...] |
/illumos-gate/usr/src/lib/cfgadm_plugins/fp/common/ |
H A D | cfga_cvt.c | 108 * constructed for the minor node type of DDI_NT_FC_ATTACHMENT_POINT. 177 * node has any child. 254 * when there is no child and path info node the 276 * now checks the children node to find 322 * now checks the path info node to find 328 * now parse the path info node. 345 /* if matches get the path of scsi_vhci child node. */ 362 * If the node is 365 * For non scsi_vhci node the path 463 * part. The attached node look 580 make_dyncomp_from_dinode( const di_node_t node, char **dyncompp, int *l_errnop) argument 623 make_portwwn_luncomp_from_dinode( const di_node_t node, char **dyncompp, int **luncompp, int *l_errnop) argument 707 construct_nodepath_from_dinode( const di_node_t node, char **node_pathp, int *l_errnop) argument [all...] |
/illumos-gate/usr/src/cmd/pack/ |
H A D | pack.c | 110 int node; member in struct:heap 112 #define hmove(a, b) {(b).count = (a).count; (b).node = (a).node; } 264 heap[n].node = i; 279 parent[heap[1].node] = ++lastnode; 284 parent[heap[1].node] = lastnode; 285 heap[1].node = lastnode;
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/daktari/psvcplugin/ |
H A D | psvcplugin.c | 71 picl_nodehdl_t node; member in struct:__anon1104 101 #define NODE_NOT_FOUND_MSG gettext("%s: Can't determine node of %s\n") 337 /* find src node */ 339 /* picl node name, outside psvc subtree */ 354 src_node = srcobjp->node; 359 * from the source node 382 /* find dest node */ 384 /* picl node name, outside psvc subtree */ 400 prop_list[i].dst_node = dstobjp->node; 401 dst_node = dstobjp->node; [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/lw2plus/fcal_leds/ |
H A D | fcal_leds_thread.c | 47 static int get_drv_info(di_node_t node, led_dtls_t *dtls); 48 static int walk_disks(di_node_t node, led_dtls_t *dtls); 86 * is there a disk-unit node here? 95 * remove disk-unit node and its properties 106 * In the case of disk ready, locate platform tree node for the disk 109 * tie the frutree disk-unit to the correct ssd node). 147 * The node with class fp (if present) is a 148 * holding node representing no actual hardware. 150 * same effective address. (The fp class node is 151 * UnitAddress 0,0 and the other fp node [clas 273 get_drv_info(di_node_t node, led_dtls_t *dtls) argument 362 walk_disks(di_node_t node, led_dtls_t *dtls) argument [all...] |
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/snowbird/frutree/ |
H A D | picllibdevinfo.c | 31 * and information regarding each node (fru, port, location). 251 if (devp->first == NULL) { /* 1st node */ 254 } else if (devp->last != NULL) { /* last node */ 257 } else { /* 2nd node */ 261 port_info = port_info->next; /* advance to next node */ 268 load_driver(di_node_t node, void *arg) argument 273 if (di_node_state(node) >= DS_ATTACHED) { 276 drv_name = di_driver_name(node); 313 probe_tree(di_node_t node, void *arg) argument 329 while ((minor = di_minor_next(node, mino 480 get_reg_dev(di_node_t node) argument 494 walk_tree(di_node_t node, void *arg) argument 665 find_fru_node(di_node_t node, void *arg) argument [all...] |
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | bridge_rcm.c | 186 * rcm_register_interest() for each node before we free it, but the 236 link_cache_t *node; local 243 node = cache_head.vc_next; 244 while (node != &cache_tail) { 245 retv = rcm_unregister_interest(hd, node->vc_resource, 0); 248 cache_remove(node); 249 node_free(node); 250 node = cache_head.vc_next; 255 _("Bridge: failed to unregister %s\n"), node->vc_resource); 285 link_cache_t *node; local 332 link_cache_t *node; local 384 link_cache_t *node; local 449 link_cache_t *node; local 539 bridge_usage(link_cache_t *node) argument 595 link_cache_t *node; local 623 node_free(link_cache_t *node) argument 635 cache_insert(link_cache_t *node) argument 651 cache_remove(link_cache_t *node) argument 673 link_cache_t *node; local 740 link_cache_t *node, *nnode; local 806 link_cache_t *node; local 865 link_cache_t *node; local [all...] |
H A D | network_rcm.c | 101 static int devfs_entry(di_node_t node, di_minor_t minor, void *arg); 102 static void cache_remove(net_cache_t *node); 273 net_cache_t *node; local 284 node = cache_lookup(rsrc); 285 if (!node) { 293 * Since node could be freed after we drop cache_lock, allocate a 300 linkid = node->linkid; 305 * so it's safe to remove the node from the cache at this point. 310 cache_remove(node); 311 free_node(node); 425 net_cache_t *node; local 597 free_node(net_cache_t *node) argument 611 cache_insert(net_cache_t *node) argument 627 cache_remove(net_cache_t *node) argument 642 devfs_entry(di_node_t node, di_minor_t minor, void *arg) argument [all...] |
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | usb_link.c | 36 static int usb_process(di_minor_t minor, di_node_t node); 39 di_node_t node, di_minor_t minor); 237 * This function is called for every usb minor node. 242 usb_process(di_minor_t minor, di_node_t node) argument 252 drvr_nm = di_driver_name(node); 257 devfsadm_print(debug_mid, "usb_process: minor=%s node=%s type=%s\n", 258 minor_nm, di_node_name(node), di_minor_nodetype(minor)); 260 devfspath = di_devfs_path(node); 298 ugen_create_link(p_path, minor_nm, node, minor); 410 (void) devfsadm_mklink(l_path, node, mino 433 ugen_create_link(char *p_path, char *node_name, di_node_t node, di_minor_t minor) argument [all...] |
/illumos-gate/usr/src/cmd/lvm/rpc.mdcommd/ |
H A D | mdmn_subr.c | 53 md_mn_nodeid_t maxlicnodes = 0; /* 0 is not a valid node ID */ 483 * So, for every possible node and for every possible class we can store 619 * checks if msg has already been processed on this node, and if so copies 626 * This can only occur on a slave node. 717 * the local node. 739 /* check against local node */ 745 /* check against one specific node */ 761 /* check against local node */ 767 /* check against one specific node */ 775 /* if we are here, we were contacted by an unlicensed node */ 792 add_license(md_mnnode_desc *node) argument 826 rem_license(md_mnnode_desc *node) argument [all...] |
/illumos-gate/usr/src/cmd/mailx/ |
H A D | names.c | 58 static struct name *put(struct name *list, struct name *node); 786 * Put another node onto a list of names and return 791 put(struct name *list, struct name *node) argument 793 node->n_flink = list; 794 node->n_blink = NIL; 796 list->n_blink = node; 797 return (node);
|
/illumos-gate/usr/src/cmd/mdb/common/modules/crypto/ |
H A D | sched_impl.c | 555 kcf_areq_node_t node; local 583 node_addr = (uintptr_t)node.an_idnext; 591 if (mdb_vread(&node, sizeof (kcf_areq_node_t), node_addr) 601 (node.an_reqarg.cr_reqid == cbdata->cb_reqid)) { 627 if ((node.an_reqarg.cr_reqid == cbdata->cb_reqid) && 629 v_kcf_areq_node(&node); 635 kcf_areq_node_simple(&node); 639 if (node.an_reqarg.cr_reqid == cbdata->cb_reqid) { 645 } while (node.an_idnext != NULL); /* follow chain in same bucket */
|
/illumos-gate/usr/src/cmd/mdb/common/modules/svc.configd/ |
H A D | configd.c | 187 uintptr_t node = 0; local 206 'n', MDB_OPT_UINTPTR, &node, 230 if (node != 0) { 232 if ((uintptr_t)cur.rl_ptrs[idx].rlp_data == node) { 233 node = 0; /* found it */ 237 if (node != 0)
|
/illumos-gate/usr/src/cmd/ndmpd/ndmp/ |
H A D | ndmpd_fhistory.c | 198 * node (input) - file inode. 200 * Should equal node if the file is the root of 208 ndmpd_api_file_history_dir_v2(void *cookie, char *name, ulong_t node, argument 266 entry->node = node; 277 * Add a file history node entry to the buffer. 283 * node (input) - file inode. 284 * must match a node from a prior ndmpd_api_file_history_dir() 296 ndmpd_api_file_history_node_v2(void *cookie, ulong_t node, argument 349 entry->node 521 ndmpd_api_file_history_dir_v3(void *cookie, char *name, ulong_t node, ulong_t parent) argument 629 ndmpd_api_file_history_node_v3(void *cookie, ulong_t node, struct stat64 *file_stat, u_longlong_t fh_info) argument [all...] |
/illumos-gate/usr/src/cmd/fm/modules/sun4v/cpumem-diagnosis/ |
H A D | cmd_branch.c | 139 branch_dimm_cb(topo_hdl_t *thp, tnode_t *node, void *arg) argument 150 if (topo_node_resource(node, &rsrc, &err) < 0) 237 fru_by_label_cb(topo_hdl_t *thp, tnode_t *node, void *arg) argument 243 if (topo_node_label(node, &lbl, &err) < 0) 247 (topo_node_fru(node, &br_memb_nvl, NULL, &err) == 0)) { 603 branch_exist_cb(topo_hdl_t *thp, tnode_t *node, void *arg) argument 612 if (topo_node_resource(node, &rsrc, &err) < 0)
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctcon.c | 499 print_node(const void *node, VISIT order, int level) argument 502 tb.ta_uid = (*(struct ctab **)node)->ct_uid; 503 CPYN(tb.ta_name, (*(struct ctab **)node)->ct_name); 504 tb.ta_con[0] = ((*(struct ctab **)node)->ct_con[0]) / 60.0; 505 tb.ta_con[1] = ((*(struct ctab **)node)->ct_con[1]) / 60.0; 506 tb.ta_sc = (*(struct ctab **)node)->ct_sess;
|
/illumos-gate/usr/src/cmd/cmd-crypto/tpmadm/ |
H A D | admin_cmds.c | 360 hash_node_t *node; local 368 for (node = hash_table[index]; node != NULL; node = node->next) { 369 if (memcmp(&(node->uuid), &uuid, sizeof (TSS_UUID)) == 0) 373 if (node == NULL) { 374 node = calloc(1, sizeof (hash_node_t)); 375 node->uuid = uuid; 376 node 388 hash_node_t *node; local 403 hash_node_t *node; local [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/lib/ipmgmtd/ |
H A D | ipmgmt_door.c | 220 * It converts the nvlist_t, `nvl', to aobjmap node `nodep'. 300 * node to the list `aobjmap' and then persists the address information in the 308 ipmgmt_aobjmap_t node; local 319 if ((err = i_ipmgmt_nvl2aobjnode(nvl, &node)) != 0) 322 node.am_flags = (IPMGMT_ACTIVE|IPMGMT_PERSIST); 324 node.am_flags = flags; 325 if ((err = ipmgmt_aobjmap_op(&node, ADDROBJ_ADD)) != 0) 361 ipmgmt_aobjmap_t node; local 374 bzero(&node, sizeof (node)); 601 ipmgmt_aobjmap_t node; local [all...] |
/illumos-gate/usr/src/cmd/fs.d/ufs/fsck/ |
H A D | main.c | 823 report_limbo(const void *node, VISIT order, int level) argument 825 fsck_ino_t ino = *(fsck_ino_t *)node;
|
/illumos-gate/usr/src/cmd/hal/hald/solaris/ |
H A D | devinfo_usb.c | 37 static HalDevice *devinfo_usb_if_add(HalDevice *d, di_node_t node, gchar *devfs_path, 39 static HalDevice *devinfo_usb_scsa2usb_add(HalDevice *d, di_node_t node); 40 static HalDevice *devinfo_usb_printer_add(HalDevice *usbd, di_node_t node); 41 static HalDevice *devinfo_usb_input_add(HalDevice *usbd, di_node_t node); 42 static HalDevice *devinfo_usb_video4linux_add(HalDevice *usbd, di_node_t node); 45 static void set_usb_properties(HalDevice *d, di_node_t node, gchar *devfs_path, char *driver_name); 75 is_usb_node(di_node_t node) argument 84 rc = di_prop_lookup_strings(DDI_DEV_T_ANY, node, "compatible", &s); 124 devinfo_usb_add(HalDevice *parent, di_node_t node, char *devfs_path, char *device_type) argument 134 if (is_usb_node(node) 248 set_usb_properties(HalDevice *d, di_node_t node, gchar *devfs_path, char *driver_name) argument 307 parse_usb_if_descr(di_node_t node, int ifnum) argument 370 devinfo_usb_if_add(HalDevice *parent, di_node_t node, gchar *devfs_path, gchar *if_devfs_path, int ifnum) argument 424 get_dev_link_path(di_node_t node, char *nodetype, char *re, char **devlink, char **minor_path, char **minor_name) argument 483 devinfo_usb_video4linux_add(HalDevice *usbd, di_node_t node) argument 546 devinfo_usb_input_add(HalDevice *usbd, di_node_t node) argument 620 devinfo_usb_scsa2usb_add(HalDevice *usbd, di_node_t node) argument 667 devinfo_usb_printer_add(HalDevice *parent, di_node_t node) argument [all...] |
H A D | sysevent.c | 369 di_node_t node; local 391 if ((node = di_init (devfs_path, DINFOCPYALL)) == DI_NODE_NIL) { 397 devinfo_lofi_add_major (parent, node, devfs_path, NULL, TRUE, d); 399 di_fini (node); 426 /* Look up the parent node in the gdl. */ 431 /* Look up the parent node in the tdl. */ 446 di_node_t node; local 452 if ((node = di_init (devfs_path, DINFOCPYALL)) == DI_NODE_NIL) { 457 if ((driver_name = di_driver_name (node)) == NULL) 468 devinfo_usb_add (parent, node, devfs_pat 584 sysevent_dr_insert_cpu(di_node_t node, void *arg) argument [all...] |
/illumos-gate/usr/src/cmd/hotplug/ |
H A D | hotplug.c | 1030 list_cb(hp_node_t node, void *arg) argument 1035 for (parent = hp_parent(node); parent; parent = hp_parent(parent)) 1039 switch (hp_type(node)) { 1041 (void) printf("%s\n", hp_name(node)); 1045 (void) printf("[%s]", hp_name(node)); 1046 (void) printf(" (%s)", state_itoa(hp_state(node))); 1051 (void) printf("<%s>", hp_name(node)); 1052 (void) printf(" (%s)", state_itoa(hp_state(node))); 1057 (void) printf("{ %s }\n", hp_usage(node)); 1072 list_long_cb(hp_node_t node, voi argument 1112 error_cb(hp_node_t node, void *arg) argument [all...] |
/illumos-gate/usr/src/cmd/stat/common/ |
H A D | dsr.c | 132 di_node_t node; local 267 /* get path to /devices devinfo node */ 271 /* find the node in the snapshot */ 272 node = di_lookup_node(di_root, devicespath); 275 /* and lookup devid property on the node */ 276 if (di_prop_lookup_strings(DDI_DEV_T_ANY, node,
|
/illumos-gate/usr/src/cmd/tnf/prex/ |
H A D | list.c | 95 static void printattrs(const void *node, VISIT order, int level); 96 static void printvals(const void *node, VISIT order, int level); 355 * we already had a node for this attribute; delete ours * 399 /* we already had a node for this value */ 448 printattrs(const void *node, argument 452 attr_node_t *an_p = (*(attr_node_t **) node); 467 printvals(const void *node, argument 471 vals_node_t *vn_p = (*(vals_node_t **) node);
|
/illumos-gate/usr/src/tools/ctf/cvt/ |
H A D | tdata.c | 40 * The layout hash is used during the equivalency checking. We have a node in 41 * the child graph that may be equivalent to a node in the parent graph. To 42 * find the corresponding node (if any) in the parent, we need a quick way to 43 * get to all nodes in the parent that look like the node in the child. Since a 45 * the node into the hash. If we don't, we'll end up with the vast majority of 51 * incorporate anything into the hash for a named struct or union node that 55 tdesc_layouthash(int nbuckets, void *node) argument 57 tdesc_t *tdp = node;
|