/illumos-gate/usr/src/uts/common/fs/smbsrv/ |
H A D | smb_node.c | 148 smb_node_t *node; in smb_node_init() local 173 node = smb_node_alloc("/", rootdir, node_hdr, hashkey); in smb_node_init() 175 smb_llist_insert_head(node_hdr, node); in smb_node_init() 177 smb_root_node = node; /* smb_node_release in smb_node_fini */ in smb_node_init() 201 smb_node_t *node; in smb_node_fini() local 212 node = smb_llist_head(bucket); in smb_node_fini() 213 while (node != NULL) { in smb_node_fini() 216 (void *)node, node->od_name); in smb_node_fini() 220 smb_llist_remove(bucket, node); in smb_node_fini() 221 node = smb_llist_head(bucket); in smb_node_fini() [all …]
|
H A D | smb_cmn_oplock.c | 55 static uint32_t smb_oplock_break_cmn(smb_node_t *node, 172 RecomputeOplockState(smb_node_t *node) in RecomputeOplockState() argument 174 smb_oplock_t *ol = &node->n_oplock; in RecomputeOplockState() 176 ASSERT(RW_READ_HELD(&node->n_ofile_list.ll_lock)); in RecomputeOplockState() 177 ASSERT(MUTEX_HELD(&node->n_oplock.ol_mutex)); in RecomputeOplockState() 249 FOREACH_NODE_OFILE(node, o) { in RecomputeOplockState() 317 smb_node_t *node = ofile->f_node; in smb_oplock_request() local 320 smb_llist_enter(&node->n_ofile_list, RW_READER); in smb_oplock_request() 321 mutex_enter(&node->n_oplock.ol_mutex); in smb_oplock_request() 325 mutex_exit(&node->n_oplock.ol_mutex); in smb_oplock_request() [all …]
|
/illumos-gate/usr/src/cmd/fm/eversholt/common/ |
H A D | tree.h | 39 struct node { struct 142 struct node *child; 143 struct node *next; 144 struct node *last; 199 struct node *arglist; 215 struct node *np; 216 struct node *nvpairs; /* for declarations */ 218 struct node *next; /* for Props & Masks lists */ 219 struct node *expr; /* for if statements */ 227 struct node *ename; /* event class name */ [all …]
|
/illumos-gate/usr/src/lib/libinetutil/common/ |
H A D | tq.c | 65 iu_timer_node_t *node, *next_node; in iu_tq_destroy() local 67 for (node = tq->iutq_head; node != NULL; node = next_node) { in iu_tq_destroy() 68 next_node = node->iutn_next; in iu_tq_destroy() 69 destroy_timer(tq, node); in iu_tq_destroy() 85 insert_timer(iu_tq_t *tq, iu_timer_node_t *node, uint64_t msec) in insert_timer() argument 98 node->iutn_abs_timeout = gethrtime() + MSEC2NSEC(msec); in insert_timer() 101 tq->iutq_head->iutn_abs_timeout < node->iutn_abs_timeout) in insert_timer() 105 node->iutn_abs_timeout) in insert_timer() 108 node->iutn_next = after ? after->iutn_next : tq->iutq_head; in insert_timer() 109 node->iutn_prev = after; in insert_timer() [all …]
|
/illumos-gate/usr/src/common/avl/ |
H A D | avl.c | 124 avl_node_t *node = AVL_DATA2NODE(oldnode, off); in avl_walk() local 132 if (node == NULL) in avl_walk() 141 if (node->avl_child[left] != NULL) { in avl_walk() 142 for (node = node->avl_child[left]; in avl_walk() 143 node->avl_child[right] != NULL; in avl_walk() 144 node = node->avl_child[right]) in avl_walk() 151 was_child = AVL_XCHILD(node); in avl_walk() 152 node = AVL_XPARENT(node); in avl_walk() 153 if (node == NULL) in avl_walk() 160 return (AVL_NODE2DATA(node, off)); in avl_walk() [all …]
|
/illumos-gate/usr/src/tools/smatch/src/ |
H A D | avl.c | 30 static void freeNode(AvlNode *node); 32 static AvlNode *lookup(const struct stree *avl, AvlNode *node, const struct sm_state *sm); 41 static bool checkBalances(AvlNode *node, int *height); 43 static size_t countNode(AvlNode *node); 154 AvlNode *node = NULL; in avl_remove() local 164 remove_sm(*avl, &(*avl)->root, sm, &node); in avl_remove() 169 if (node == NULL) { in avl_remove() 172 free(node); in avl_remove() 179 AvlNode *node = malloc(sizeof(*node)); in mkNode() local 181 assert(node != NULL); in mkNode() [all …]
|
H A D | ast-inspect.c | 8 static inline void inspect_ptr_list(AstNode *node, const char *name, void (*inspect)(AstNode *)) in inspect_ptr_list() argument 10 struct ptr_list *ptrlist = node->ptr; in inspect_ptr_list() 14 node->text = g_strdup_printf("%s %s:", node->text, name); in inspect_ptr_list() 17 ast_append_child(node, index, ptr, inspect); in inspect_ptr_list() 43 void inspect_statement(AstNode *node) in inspect_statement() argument 45 struct statement *stmt = node->ptr; in inspect_statement() 46 node->text = g_strdup_printf("%s %s:", node->text, statement_type_name(stmt->type)); in inspect_statement() 49 ast_append_child(node, "stmts:", stmt->stmts, inspect_statement_list); in inspect_statement() 52 ast_append_child(node, "expression:", stmt->expression, inspect_expression); in inspect_statement() 55 ast_append_child(node, "conditional:", stmt->if_conditional, inspect_expression); in inspect_statement() [all …]
|
H A D | ast-model.c | 44 void inspect_child_node(AstNode *node) in inspect_child_node() argument 46 if (node->inspect) { in inspect_child_node() 47 node->inspect(node); in inspect_child_node() 48 node->inspect = NULL; in inspect_child_node() 54 AstNode* ast_nth_child(AstNode *node, int n) in ast_nth_child() argument 56 if (!node) in ast_nth_child() 59 inspect_child_node(node); in ast_nth_child() 61 if (n >= node->childnodes->len) in ast_nth_child() 63 return g_array_index(node->childnodes, AstNode *, n); in ast_nth_child() 68 gboolean ast_set_iter(GtkTreeIter *iter, AstNode *node) in ast_set_iter() argument [all …]
|
/illumos-gate/usr/src/lib/fm/topo/libtopo/common/ |
H A D | topo_node.c | 130 topo_node_destroy(tnode_t *node) in topo_node_destroy() argument 137 if (node == NULL) in topo_node_destroy() 140 pnode = node->tn_parent; in topo_node_destroy() 141 mod = node->tn_enum; in topo_node_destroy() 144 topo_node_name(node), topo_node_instance(node)); in topo_node_destroy() 146 assert(node->tn_refs == 0); in topo_node_destroy() 152 if (!(node->tn_state & TOPO_NODE_ROOT)) { in topo_node_destroy() 155 nhp = node->tn_phash; in topo_node_destroy() 157 if (node == nhp->th_nodearr[i]) { in topo_node_destroy() 171 topo_node_unlock(node); in topo_node_destroy() [all …]
|
H A D | topo_prop.c | 81 pgroup_get(tnode_t *node, const char *pgname) in pgroup_get() argument 87 for (pg = topo_list_next(&node->tn_pgroups); pg != NULL; in pgroup_get() 125 prop_method_get(tnode_t *node, topo_propval_t *pv, topo_propmethod_t *pm, in prop_method_get() argument 150 topo_node_unlock(node); in prop_method_get() 151 if (topo_method_call(node, pm->tpm_name, pm->tpm_version, in prop_method_get() 153 topo_node_lock(node); in prop_method_get() 157 topo_node_lock(node); in prop_method_get() 179 prop_get(tnode_t *node, const char *pgname, const char *pname, nvlist_t *pargs, in prop_get() argument 184 if ((pv = propval_get(pgroup_get(node, pgname), pname)) == NULL) { in prop_get() 193 if (prop_method_get(node, pv, pv->tp_method, pargs, err) < 0) in prop_get() [all …]
|
/illumos-gate/usr/src/cmd/awk_xpg4/ |
H A D | awk.y | 51 NODE *node; member 63 %token <node> PARM ARRAY UFUNC FIELD IN INDEX CONCAT 64 %token <node> NOT AND OR EXP QUEST 65 %token <node> EQ NE GE LE GT LT 66 %token <node> ADD SUB MUL DIV REM INC DEC PRE_INC PRE_DEC 67 %token <node> GETLINE CALLFUNC RE TILDE NRE 73 %token <node> PRINT PRINTF 74 %token <node> EXIT RETURN BREAK CONTINUE NEXT 75 %token <node> DELETE WHILE DO FOR FORIN IF 81 %token <node> CONSTANT VAR FUNC [all …]
|
/illumos-gate/usr/src/lib/libxcurses/src/libc/xcurses/ |
H A D | keypad.c | 56 t_decode *node, *saved; local 69 node = (t_decode *) malloc(sizeof *node); 70 if (node == (t_decode *) 0) 73 *root = saved = node; 75 node->child = node->sibling = (t_decode *) 0; 76 node->ch = *str++; 77 node->key = 0; 80 for (node = *root; *str != '\0'; ++str, node = node->child) { 81 while (node->ch != *str 82 && node->sibling != (t_decode *)0) [all …]
|
/illumos-gate/usr/src/lib/libxcurses2/src/libc/xcurses/ |
H A D | keypad.c | 58 t_decode *node, *saved; in decode_add() local 71 node = (t_decode *) malloc(sizeof (*node)); in decode_add() 72 if (node == NULL) in decode_add() 75 *root = saved = node; in decode_add() 77 node->child = node->sibling = NULL; in decode_add() 78 node->ch = *str++; in decode_add() 79 node->key = 0; in decode_add() 82 for (node = *root; *str != '\0'; ++str, node = node->child) { in decode_add() 83 while (node->ch != *str && in decode_add() 84 node->sibling != NULL) in decode_add() [all …]
|
/illumos-gate/usr/src/cmd/rcm_daemon/common/ |
H A D | bridge_rcm.c | 236 link_cache_t *node; in bridge_unregister() local 243 node = cache_head.vc_next; in bridge_unregister() 244 while (node != &cache_tail) { in bridge_unregister() 245 retv = rcm_unregister_interest(hd, node->vc_resource, 0); in bridge_unregister() 248 cache_remove(node); in bridge_unregister() 249 node_free(node); in bridge_unregister() 250 node = cache_head.vc_next; in bridge_unregister() 255 _("Bridge: failed to unregister %s\n"), node->vc_resource); in bridge_unregister() 285 link_cache_t *node; in bridge_offline() local 292 node = cache_lookup(hd, rsrc, CACHE_REFRESH); in bridge_offline() [all …]
|
H A D | vlan_rcm.c | 258 link_cache_t *node; in vlan_unregister() local 264 node = cache_head.vc_next; in vlan_unregister() 265 while (node != &cache_tail) { in vlan_unregister() 266 if (rcm_unregister_interest(hd, node->vc_resource, 0) in vlan_unregister() 270 node->vc_resource); in vlan_unregister() 274 cache_remove(node); in vlan_unregister() 275 node_free(node); in vlan_unregister() 276 node = cache_head.vc_next; in vlan_unregister() 307 link_cache_t *node; in vlan_offline() local 313 node = cache_lookup(hd, rsrc, CACHE_REFRESH); in vlan_offline() [all …]
|
H A D | ibpart_rcm.c | 258 link_cache_t *node; in ibpart_unregister() local 264 node = cache_head.pc_next; in ibpart_unregister() 265 while (node != &cache_tail) { in ibpart_unregister() 266 if (rcm_unregister_interest(hd, node->pc_resource, 0) in ibpart_unregister() 270 node->pc_resource); in ibpart_unregister() 274 cache_remove(node); in ibpart_unregister() 275 node_free(node); in ibpart_unregister() 276 node = cache_head.pc_next; in ibpart_unregister() 307 link_cache_t *node; in ibpart_offline() local 313 node = cache_lookup(hd, rsrc, CACHE_REFRESH); in ibpart_offline() [all …]
|
H A D | vnic_rcm.c | 258 link_cache_t *node; in vnic_unregister() local 264 node = cache_head.vc_next; in vnic_unregister() 265 while (node != &cache_tail) { in vnic_unregister() 266 if (rcm_unregister_interest(hd, node->vc_resource, 0) in vnic_unregister() 270 node->vc_resource); in vnic_unregister() 274 cache_remove(node); in vnic_unregister() 275 node_free(node); in vnic_unregister() 276 node = cache_head.vc_next; in vnic_unregister() 307 link_cache_t *node; in vnic_offline() local 313 node = cache_lookup(hd, rsrc, CACHE_REFRESH); in vnic_offline() [all …]
|
/illumos-gate/usr/src/test/zfs-tests/tests/functional/acl/nontrivial/ |
H A D | zfs_acl_chmod_rwacl_001_pos.ksh | 61 typeset node=$1 67 chgusr_exec $user ls -vd $node > /dev/null 2>&1 79 typeset node=$1 85 before_cnt=$(count_ACE $node) 89 chgusr_exec $user chmod A0+owner@:read_data:allow $node 93 after_cnt=$(count_ACE $node) 97 chgusr_exec $user chmod A0- $node 113 typeset node=$1 124 chmod A0+owner@:read_acl/write_acl:$acc $node 126 log_must read_ACL $node $ZFS_ACL_CUR_USER [all …]
|
/illumos-gate/usr/src/uts/common/io/1394/adapters/ |
H A D | hci1394_tlist.c | 59 hci1394_tlist_node_t *node); 133 hci1394_tlist_node_t *node) in hci1394_tlist_add() argument 136 ASSERT(node != NULL); in hci1394_tlist_add() 141 node->tln_next = NULL; in hci1394_tlist_add() 144 node->tln_on_list = B_TRUE; in hci1394_tlist_add() 148 node->tln_expire_time = gethrtime() + in hci1394_tlist_add() 154 tlist_handle->tl_head = node; in hci1394_tlist_add() 155 tlist_handle->tl_tail = node; in hci1394_tlist_add() 156 node->tln_prev = NULL; in hci1394_tlist_add() 169 tlist_handle->tl_tail->tln_next = node; in hci1394_tlist_add() [all …]
|
/illumos-gate/usr/src/lib/libtecla/common/ |
H A D | hash.c | 91 static HashNode *_del_HashNode(HashTable *hash, HashNode *node); 342 HashNode *node; /* The new node */ in _new_HashSymbol() local 357 node = _find_HashNode(hash, bucket, name, NULL); in _new_HashSymbol() 362 if(node) { in _new_HashSymbol() 363 if(node->symbol.data && node->symbol.del_fn) { in _new_HashSymbol() 364 node->symbol.data = node->symbol.del_fn(hash->app_data, node->symbol.code, in _new_HashSymbol() 365 node->symbol.data); in _new_HashSymbol() 371 node = _new_HashNode(hash, name, code, fn, data, del_fn); in _new_HashSymbol() 372 if(!node) in _new_HashSymbol() 378 node->next = bucket->head; in _new_HashSymbol() [all …]
|
H A D | stringrp.c | 131 StringSegment *node; in _del_StringGroup() local 135 for(node=sg->head; node; node=node->next) { in _del_StringGroup() 136 if(node->block) in _del_StringGroup() 137 free(node->block); in _del_StringGroup() 138 node->block = NULL; in _del_StringGroup() 228 StringSegment *node; /* A node of the list of string segments */ in _sg_alloc_string() local 240 for(node=sg->head; node && node->unused <= length; node=node->next) in _sg_alloc_string() 245 if(!node) { in _sg_alloc_string() 246 node = (StringSegment *) _new_FreeListNode(sg->node_mem); in _sg_alloc_string() 247 if(!node) in _sg_alloc_string() [all …]
|
/illumos-gate/usr/src/cmd/devfsadm/ |
H A D | misc_link.c | 39 static int display(di_minor_t minor, di_node_t node); 40 static int parallel(di_minor_t minor, di_node_t node); 41 static int node_slash_minor(di_minor_t minor, di_node_t node); 42 static int driver_minor(di_minor_t minor, di_node_t node); 43 static int node_name(di_minor_t minor, di_node_t node); 44 static int minor_name(di_minor_t minor, di_node_t node); 45 static int wifi_minor_name(di_minor_t minor, di_node_t node); 46 static int conskbd(di_minor_t minor, di_node_t node); 47 static int consms(di_minor_t minor, di_node_t node); 48 static int power_button(di_minor_t minor, di_node_t node); [all …]
|
/illumos-gate/usr/src/cmd/devfsadm/i386/ |
H A D | misc_link_i386.c | 40 static int ln_minor_name(di_minor_t minor, di_node_t node); 41 static int lp(di_minor_t minor, di_node_t node); 42 static int serial_dialout(di_minor_t minor, di_node_t node); 43 static int serial(di_minor_t minor, di_node_t node); 44 static int diskette(di_minor_t minor, di_node_t node); 45 static int vt00(di_minor_t minor, di_node_t node); 46 static int kdmouse(di_minor_t minor, di_node_t node); 47 static int ipmi(di_minor_t minor, di_node_t node); 48 static int mc_node(di_minor_t minor, di_node_t node); 49 static int vmmctl(di_minor_t minor, di_node_t node); [all …]
|
/illumos-gate/usr/src/lib/libhotplug/common/ |
H A D | libhotplug.c | 126 hp_node_t node; in hp_fini() local 140 for (node = root; node != NULL; node = node->hp_sibling) in hp_fini() 141 node->hp_basepath = NULL; in hp_fini() 146 node = root; in hp_fini() 147 while (node) { in hp_fini() 148 sibling = node->hp_sibling; in hp_fini() 149 if (node->hp_child) in hp_fini() 150 hp_fini(node->hp_child); in hp_fini() 151 if (node->hp_name) in hp_fini() 152 free(node->hp_name); in hp_fini() [all …]
|
/illumos-gate/usr/src/cmd/fm/modules/common/eversholt/ |
H A D | eft_mdb.c | 365 struct node node; in eft_node() local 380 if (mdb_vread(&node, sizeof (node), addr) != sizeof (node)) { in eft_node() 386 (uintptr_t)node.file) < 0) in eft_node() 388 node.file); in eft_node() 390 mdb_printf("%s len %d\n", buf, node.line); in eft_node() 392 switch (node.t) { in eft_node() 398 (uintptr_t)node.u.name.s) < 0) in eft_node() 400 node.u.name.s); in eft_node() 403 if (node.u.name.cp) { in eft_node() 406 (uintptr_t)node.u.name.cp) != sizeof (cp)) { in eft_node() [all …]
|