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

Function pctrie_keybarr

freebsd/kern/subr_pctrie.c:283–292  ·  view source on GitHub ↗

* Returns TRUE if it can be determined that key does not belong to the * specified node. Otherwise, returns FALSE. */

Source from the content-addressed store, hash-verified

281 * specified node. Otherwise, returns FALSE.
282 */
283static __inline bool
284pctrie_keybarr(struct pctrie_node *node, uint64_t idx)
285{
286
287 if (node->pn_clev < PCTRIE_LIMIT) {
288 idx = pctrie_trimkey(idx, node->pn_clev + 1);
289 return (idx != node->pn_owner);
290 }
291 return (false);
292}
293
294/*
295 * Internal helper for pctrie_reclaim_allnodes().

Callers 4

pctrie_insertFunction · 0.85
_pctrie_lookupFunction · 0.85
pctrie_lookup_geFunction · 0.85
pctrie_lookup_leFunction · 0.85

Calls 1

pctrie_trimkeyFunction · 0.85

Tested by

no test coverage detected