Searched refs:rnh (Results 1 – 4 of 4) sorted by relevance
/titanic_41/usr/src/uts/common/net/ |
H A D | radix.h | 191 #define RADIX_NODE_HEAD_LOCK_INIT(rnh) \ argument 192 rw_init(&(rnh)->rnh_lock, NULL, RW_DEFAULT, NULL) 193 #define RADIX_NODE_HEAD_RLOCK(rnh) rw_enter(&(rnh)->rnh_lock, RW_READER) argument 194 #define RADIX_NODE_HEAD_WLOCK(rnh) rw_enter(&(rnh)->rnh_lock, RW_WRITER) argument 195 #define RADIX_NODE_HEAD_UNLOCK(rnh) rw_exit(&(rnh)->rnh_lock) argument 196 #define RADIX_NODE_HEAD_DESTROY(rnh) rw_destroy(&(rnh)->rnh_lock) argument 197 #define RADIX_NODE_HEAD_LOCK_ASSERT(rnh) RW_WRITE_HELD(&(rnh)->rnh_lock) argument
|
/titanic_41/usr/src/common/net/patricia/ |
H A D | radix.c | 1192 struct radix_node_head *rnh; local 1196 R_ZallocSleep(rnh, struct radix_node_head *, sizeof (*rnh)); 1197 if (rnh == 0) 1200 RADIX_NODE_HEAD_LOCK_INIT(rnh); 1202 *head = rnh; 1203 t = rn_newpair(rn_zeros, off, rnh->rnh_nodes); 1204 ttt = rnh->rnh_nodes + 2; 1212 rnh->rnh_addaddr = rn_addroute; 1213 rnh->rnh_deladdr = rn_delete; 1214 rnh->rnh_matchaddr = rn_match; [all …]
|
/titanic_41/usr/src/uts/common/inet/ipf/ |
H A D | ip_pool.c | 922 struct radix_node_head *rnh = p; in rn_freenode() local 925 d = rnh->rnh_deladdr(n->rn_key, NULL, rnh); in rn_freenode() 934 rn_freehead(rnh) in rn_freehead() argument 935 struct radix_node_head *rnh; in rn_freehead() 938 (*rnh->rnh_walktree)(rnh, rn_freenode, rnh); 940 rnh->rnh_addaddr = NULL; 941 rnh->rnh_deladdr = NULL; 942 rnh->rnh_matchaddr = NULL; 943 rnh->rnh_lookup = NULL; 944 rnh->rnh_walktree = NULL; [all …]
|
/titanic_41/usr/src/cmd/cmd-inet/usr.sbin/in.routed/ |
H A D | radix.c | 956 struct radix_node_head *rnh; in rn_inithead() local 960 rnh = rtmalloc(sizeof (*rnh), "rn_inithead"); in rn_inithead() 961 (void) memset(rnh, 0, sizeof (*rnh)); in rn_inithead() 962 *head = rnh; in rn_inithead() 963 t = rn_newpair(rn_zeros, off, rnh->rnh_nodes); in rn_inithead() 964 ttt = rnh->rnh_nodes + 2; in rn_inithead() 972 rnh->rnh_addaddr = rn_addroute; in rn_inithead() 973 rnh->rnh_deladdr = rn_delete; in rn_inithead() 974 rnh->rnh_matchaddr = rn_match; in rn_inithead() 975 rnh->rnh_lookup = rn_lookup; in rn_inithead() [all …]
|