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

Function rangeset_remove_all

freebsd/kern/subr_rangeset.c:247–261  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245}
246
247void
248rangeset_remove_all(struct rangeset *rs)
249{
250 struct rs_el *r;
251 uint64_t *r1;
252
253 for (;;) {
254 r1 = pctrie_lookup_ge(&rs->rs_trie, 0);
255 if (r1 == NULL)
256 break;
257 r = __containerof(r1, struct rs_el, re_start);
258 pctrie_remove(&rs->rs_trie, r->re_start, rs_node_free);
259 rs->rs_free_data(rs->rs_data_ctx, r);
260 }
261}
262
263void *
264rangeset_lookup(struct rangeset *rs, uint64_t place)

Callers 3

pmap_pkru_deassign_allFunction · 0.85
rangeset_finiFunction · 0.85
rangeset_copyFunction · 0.85

Calls 2

pctrie_lookup_geFunction · 0.85
pctrie_removeFunction · 0.85

Tested by

no test coverage detected