Lines Matching defs:rnh
1192 struct radix_node_head *rnh;
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;
1207 tt = t->rn_left; /* ... which in turn is rnh->rnh_nodes */
1212 rnh->rnh_addaddr = rn_addroute;
1213 rnh->rnh_deladdr = rn_delete;
1214 rnh->rnh_matchaddr = rn_match;
1215 rnh->rnh_matchaddr_args = rn_match_args;
1216 rnh->rnh_lookup = rn_lookup;
1217 rnh->rnh_walktree = rn_walktree;
1218 rnh->rnh_walktree_mt = rn_walktree_mt;
1219 rnh->rnh_walktree_from = NULL; /* not implemented */
1220 rnh->rnh_treetop = t;
1253 struct radix_node_head *rnh = p;
1256 d = rnh->rnh_deladdr(n->rn_key, NULL, rnh);
1265 rn_freehead(rnh)
1266 struct radix_node_head *rnh;
1268 (void) rn_walktree(rnh, rn_freenode, rnh);
1270 rnh->rnh_addaddr = NULL;
1271 rnh->rnh_deladdr = NULL;
1272 rnh->rnh_matchaddr = NULL;
1273 rnh->rnh_lookup = NULL;
1274 rnh->rnh_walktree = NULL;
1277 RADIX_NODE_HEAD_DESTROY(rnh);
1278 FreeHead(rnh, sizeof (*rnh));
1280 Free(rnh, NULL);