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

Function rangeset_lookup

freebsd/kern/subr_rangeset.c:263–277  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

261}
262
263void *
264rangeset_lookup(struct rangeset *rs, uint64_t place)
265{
266 struct rs_el *r;
267 uint64_t *r1;
268
269 rangeset_check(rs);
270 r1 = pctrie_lookup_le(&rs->rs_trie, place);
271 if (r1 == NULL)
272 return (NULL);
273 r = __containerof(r1, struct rs_el, re_start);
274 if (r->re_end <= place)
275 return (NULL);
276 return (r);
277}
278
279int
280rangeset_copy(struct rangeset *dst_rs, struct rangeset *src_rs)

Callers 2

pmap_pkru_sameFunction · 0.85
pmap_pkru_getFunction · 0.85

Calls 2

rangeset_checkFunction · 0.85
pctrie_lookup_leFunction · 0.85

Tested by

no test coverage detected