/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | zfs.c | 133 zfs_rele(topo_mod_t *mp, tnode_t *node) argument 135 topo_method_unregister_all(mp, node); 197 zfs_fmri_nvl2str(topo_mod_t *mod, tnode_t *node, topo_version_t version, argument
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/fac_prov_mptsas/ |
H A D | fac_prov_mptsas.c | 120 mptsas_led_mode(topo_mod_t *mod, tnode_t *node, topo_version_t vers, argument 124 tnode_t *pnode = topo_node_parent(node); 143 if (topo_prop_get_uint32(node, TOPO_PGROUP_FACILITY, TOPO_FACILITY_TYPE, 241 topo_mod_dprintf(mod, "%s: unexpected node flags %x", __func__,
|
/illumos-gate/usr/src/lib/fm/topo/modules/common/xfp/ |
H A D | xfp.c | 147 xfp_label_set(topo_mod_t *mod, tnode_t *parent, tnode_t *node, argument 166 if (topo_prop_set_string(node, TOPO_PGROUP_PROTOCOL,
|
/illumos-gate/usr/src/lib/fm/topo/modules/sun4v/pcibus/ |
H A D | pci_sun4v.c | 46 tnode_t *node; member in struct:_pci_fru 57 platform_pci_label(topo_mod_t *mod, tnode_t *node, nvlist_t *in, argument 69 result = di_bytes_get(mod, topo_node_getspecific(node), 75 /* Invoke the generic label generator for this node */ 76 return (pci_label_cmn(mod, node, in, out)); 81 * chassis-location-name property as the node label. 86 result = topo_node_label_set(node, nac, &err); 98 platform_pci_fru(topo_mod_t *mod, tnode_t *node, nvlist_t *in, argument 113 if (topo_prop_get_string(node, FM_FMRI_AUTHORITY, 143 nm = topo_node_name(node); 187 platform_pci_fru_location(topo_mod_t *mod, tnode_t *node, uchar_t *loc, int locsiz) argument 227 platform_pci_fru_cb(topo_mod_t *mod, tnode_t *node, void *private) argument [all...] |
/illumos-gate/usr/src/lib/libslp/clib/ |
H A D | SLPFindSrvTypes.c | 255 * the tree, and freeing each node of the tree as it goes. 260 static void collect_types(void *node, VISIT order, int level, void *cookie) { argument 264 char *t = *(char **)node; 267 free(node);
|
H A D | slp_da_cache.c | 205 static void free_cache_entry(void *node, VISIT order) { argument 207 cache_entry_t *ce = *(cache_entry_t **)node; 212 free(node);
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | chrqueue.c | 45 * Set the number of bytes allocated to each node of the list of 63 CqCharBuff *next; /* The next node in the list of buffers */ 64 char bytes[GL_CQ_SIZE]; /* The fixed size buffer of this node */ 193 * If allocating this new node will require a call to malloc(), as 194 * opposed to using a currently unused node in the freelist, first try 197 * bigger than a single buffer node. When it is non-blocking, it helps 220 * Allocate the new node. 222 CqCharBuff *node = (CqCharBuff *) _new_FreeListNode(cq->bufmem); local 223 if(!node) { 229 * Initialize the node 390 CqCharBuff *node = cq->buffers.head; local [all...] |
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | wgetch.c | 341 t_decode *node; local 400 node = (t_decode *) __m_screen->_decode; 405 while (node->ch != ch) { 406 node = node->sibling; 407 if (node == NULL) 412 if (node->key != 0) { 415 return (__m_echo(w, node->key)); 442 node = node [all...] |
/illumos-gate/usr/src/lib/libnsctl/common/ |
H A D | machdep.c | 86 /* fixup return value for single node ioctl */ 107 ncall_node_t node; local 118 memset(&node, 0, sizeof (node)); 120 rval = ioctl(fd, NC_IOC_GETNODE, &node); 124 *id = node.nc_nodeid; 126 * Return 0, not the mirror node id as returned 273 * return the node name corresponding to system id
|
/illumos-gate/usr/src/lib/libprtdiag/common/ |
H A D | pdevinfo_sun4v.c | 84 Prom_node *root_node; /* root node of OBP device tree */ 85 picl_nodehdl_t rooth; /* root PICL node for IO display */ 86 picl_nodehdl_t plafh; /* Platform PICL node for IO display */ 157 /* allocate a node for this level */ 169 /* read properties for this node */ 173 * Place a node in a 'board' if it has 'board'-ness. The definition 214 printf("node not added: name=%s type=%s\n", name, type); 238 * search children to get the node by the nodename 277 get_id(Prom_node *node) argument 280 node [all...] |
/illumos-gate/usr/src/lib/libc/port/stdio/ |
H A D | popen.c | 59 typedef struct node { struct 62 struct node *next; 96 node_t *node; local 101 if ((node = lmalloc(sizeof (node_t))) == NULL) 104 lfree(node, sizeof (node_t)); 109 lfree(node, sizeof (node_t)); 128 lfree(node, sizeof (node_t)); 137 lfree(node, sizeof (node_t)); 173 lfree(node, sizeof (node_t)); 185 lfree(node, sizeo 295 node_t *node; local [all...] |
/illumos-gate/usr/src/lib/libinetutil/common/ |
H A D | tq.c | 65 iu_timer_node_t *node, *next_node; local 67 for (node = tq->iutq_head; node != NULL; node = next_node) { 68 next_node = node->iutn_next; 69 destroy_timer(tq, node); 76 * insert_timer(): inserts a timer node into a tq's timer list 79 * iu_timer_node_t *: the timer node to insert into the list 85 insert_timer(iu_tq_t *tq, iu_timer_node_t *node, uint64_t msec) argument 90 * find the node t 128 remove_timer(iu_tq_t *tq, iu_timer_node_t *node) argument 147 destroy_timer(iu_tq_t *tq, iu_timer_node_t *node) argument 196 iu_timer_node_t *node = calloc(1, sizeof (iu_timer_node_t)); local 227 iu_timer_node_t *node; local 256 iu_timer_node_t *node; local 317 iu_timer_node_t *node, *next_node; local [all...] |
/illumos-gate/usr/src/common/list/ |
H A D | list.c | 45 #define list_object(a, node) ((void *)(((char *)node) - (a)->list_offset)) 48 #define list_insert_after_node(list, node, object) { \ 50 lnew->list_prev = (node); \ 51 lnew->list_next = (node)->list_next; \ 52 (node)->list_next->list_prev = lnew; \ 53 (node)->list_next = lnew; \ 56 #define list_insert_before_node(list, node, object) { \ 58 lnew->list_next = (node); \ 59 lnew->list_prev = (node) 85 list_node_t *node = &list->list_head; local 178 list_node_t *node = list_d2l(list, object); local 189 list_node_t *node = list_d2l(list, object); local [all...] |
/illumos-gate/usr/src/grub/grub-0.97/netboot/ |
H A D | grub.h | 51 uint8_t node[6]; member in struct:arptable_t
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/cherrystone/psvcplugin/ |
H A D | psvcplugin.c | 64 picl_nodehdl_t node; member in struct:__anon1094 169 * sensor If not present, then we remove the entire node since module 236 err = ptree_delete_node(objp->node); 248 * which indicates that the node file doesn't represent a device 249 * tree node and is probably a relic from some previous boot config
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4u/littleneck/psvcplugin/ |
H A D | psvcplugin.c | 61 picl_nodehdl_t node; member in struct:__anon1163 158 err = ptree_delete_node(objp->node); 170 * which indicates that the node file doesn't represent a device 171 * tree node and is probably a relic from some previous boot config
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/mdesc/ |
H A D | mdescplugin.c | 33 * PICL tree which will have a disk node created for each disk node in the 50 extern int add_cpu_prop(picl_nodehdl_t node, void *args); 74 find_disk(picl_nodehdl_t node, void *args) argument 80 status = ptree_get_propval_by_name(node, "Path", (void *)&path, 87 lookup->disk = node;
|
/illumos-gate/usr/src/cmd/picl/plugins/sun4v/pri/ |
H A D | priplugin.c | 49 static int remove_old_segments(picl_nodehdl_t node, void *args); 74 prop_exists(picl_nodehdl_t node, char *name) argument 79 status = ptree_get_prop_by_name(node, name, &proph); 87 add_md_prop(picl_nodehdl_t node, int size, char *name, void* value, int type) argument 92 if (!prop_exists(node, name)) { 95 (void) ptree_create_and_add_prop(node, &propinfo, 102 remove_old_segments(picl_nodehdl_t node, void *args) argument 106 if ((status = ptree_delete_node(node)) == PICL_SUCCESS) 107 ptree_destroy_node(node); 110 "segment node [all...] |
/illumos-gate/usr/src/cmd/ramdiskadm/ |
H A D | main.c | 126 di_callback(di_node_t node, di_minor_t minor, void *arg) argument 138 if (strcmp(di_driver_name(node), RD_DRIVER_NAME) == 0 && 143 obp_ramdisk = (di_nodeid(node) == DI_PROM_NODEID); 146 * If this is an OBP-created ramdisk use the node name, having 151 RD_STRIP_PREFIX(name, di_node_name(node)); 162 if (di_prop_lookup_int64(di_minor_devt(minor), node,
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | audio_link.c | 46 static int audio_process(di_minor_t minor, di_node_t node); 47 static int sndstat_process(di_minor_t minor, di_node_t node); 151 sndstat_process(di_minor_t minor, di_node_t node) argument 156 anynode = node; 162 (void) devfsadm_mklink("sndstat", node, minor, 0); 170 * This function is called for every audio node. 175 audio_process(di_minor_t minor, di_node_t node) argument 197 anynode = node; 200 if ((tmp = di_devfs_path(node)) == NULL) { 216 driver = di_driver_name(node); [all...] |
H A D | sgen_link.c | 40 static int sgen_callback(di_minor_t minor, di_node_t node); 41 static char *find_ctrlr(di_node_t node, di_minor_t minor); 64 sgen_callback(di_minor_t minor, di_node_t node) argument 72 if ((cnum = find_ctrlr(node, minor)) == NULL) 78 if (di_prop_lookup_strings(DDI_DEV_T_ANY, node, 89 if ((di_prop_lookup_int64(DDI_DEV_T_ANY, node, 93 } else if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, 123 } else if (di_prop_lookup_strings(DDI_DEV_T_ANY, node, 139 } else if (di_prop_lookup_bytes(DDI_DEV_T_ANY, node, 145 if (di_prop_lookup_ints(DDI_DEV_T_ANY, node, "lu 184 find_ctrlr(di_node_t node, di_minor_t minor) argument [all...] |
/illumos-gate/usr/src/cmd/mdb/common/modules/genunix/ |
H A D | avl.c | 36 uintptr_t aw_end; /* last node in specified range */ 44 * an AVL node 50 avl_node_t *node = (avl_node_t *)((uintptr_t)buff + offset); local 58 if (node->avl_child[0] == NULL) 60 addr = (uintptr_t)node->avl_child[0]; 114 * "node" always points at the avl_node_t field inside the struct 174 * At each step, visit (callback) the current node, then move to the next 184 avl_node_t *node; local 202 node = (avl_node_t *)((uintptr_t)aw->aw_buff + offset); 205 * must read the current node fo [all...] |
/illumos-gate/usr/src/cmd/eeprom/i386/ |
H A D | benv_kvm.c | 95 * Find a node by name from the prom device tree. 118 * Make the current prom node be the rootnode and return its id. 163 * Get a pointer to the requested property from the current node. 229 get_propval(char *name, char *node) argument 233 if ((plist = get_proplist(node)) == NULL)
|
/illumos-gate/usr/src/cmd/fm/modules/sun4v/etm/ |
H A D | etm_filter.c | 57 etm_pciexrc_walker(topo_hdl_t *thp, tnode_t *node, void *arg) argument 62 char *str; /* topo node value */ 69 /* pciexrc node */ 70 if (strcmp(topo_node_name(node), PCIEX_ROOT) != 0) 73 if (topo_prop_get_string(node, TOPO_PGROUP_IO, TOPO_IO_DEV, &str, 78 ins = topo_node_instance(node);
|
/illumos-gate/usr/src/cmd/acct/ |
H A D | acctprc.c | 155 void print_node(const void *node, VISIT order, int level) { argument 158 tb.ta_uid = (*(struct utab **)node)->ut_uid; 159 CPYN(tb.ta_name, (char *)uidtonam((*(struct utab **)node)->ut_uid)); 160 tb.ta_cpu[0] = (*(struct utab **)node)->ut_cpu[0]; 161 tb.ta_cpu[1] = (*(struct utab **)node)->ut_cpu[1]; 162 tb.ta_kcore[0] = (*(struct utab **)node)->ut_kcore[0]; 163 tb.ta_kcore[1] = (*(struct utab **)node)->ut_kcore[1]; 164 tb.ta_pc = (*(struct utab **)node)->ut_pc;
|