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

Function vm_radix_is_singleton

freebsd/vm/vm_radix.c:462–471  ·  view source on GitHub ↗

* Returns TRUE if the specified radix tree contains a single leaf and FALSE * otherwise. */

Source from the content-addressed store, hash-verified

460 * otherwise.
461 */
462boolean_t
463vm_radix_is_singleton(struct vm_radix *rtree)
464{
465 struct vm_radix_node *rnode;
466
467 rnode = vm_radix_root_load(rtree, LOCKED);
468 if (rnode == NULL)
469 return (FALSE);
470 return (vm_radix_isleaf(rnode));
471}
472
473/*
474 * Returns the value stored at the index. If the index is not present,

Callers

nothing calls this directly

Calls 2

vm_radix_root_loadFunction · 0.85
vm_radix_isleafFunction · 0.85

Tested by

no test coverage detected