MCPcopy Create free account
hub / github.com/F-Stack/f-stack / rn_detachhead

Function rn_detachhead

freebsd/net/radix.c:1172–1189  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1170}
1171
1172int
1173rn_detachhead(void **head)
1174{
1175 struct radix_node_head *rnh;
1176
1177 KASSERT((head != NULL && *head != NULL),
1178 ("%s: head already freed", __func__));
1179
1180 rnh = (struct radix_node_head *)(*head);
1181
1182 rn_walktree(&rnh->rh.rnh_masks->head, rn_freeentry, rnh->rh.rnh_masks);
1183 rn_detachhead_internal(&rnh->rh.rnh_masks->head);
1184 rn_detachhead_internal(&rnh->rh);
1185
1186 *head = NULL;
1187
1188 return (1);
1189}

Callers 6

pfr_destroy_ktableFunction · 0.85
ta_init_radixFunction · 0.85
ta_destroy_radixFunction · 0.85
lradix4_destroyFunction · 0.85
lradix6_destroyFunction · 0.85
vfs_free_addrlist_afFunction · 0.85

Calls 2

rn_walktreeFunction · 0.85
rn_detachhead_internalFunction · 0.85

Tested by

no test coverage detected