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

Function vm_radix_trimkey

freebsd/vm/vm_radix.c:184–195  ·  view source on GitHub ↗

Trims the key after the specified level. */

Source from the content-addressed store, hash-verified

182
183/* Trims the key after the specified level. */
184static __inline vm_pindex_t
185vm_radix_trimkey(vm_pindex_t index, uint16_t level)
186{
187 vm_pindex_t ret;
188
189 ret = index;
190 if (level > 0) {
191 ret >>= level * VM_RADIX_WIDTH;
192 ret <<= level * VM_RADIX_WIDTH;
193 }
194 return (ret);
195}
196
197/*
198 * Fetch a node pointer from a slot in another node.

Callers 4

vm_radix_keybarrFunction · 0.85
vm_radix_insertFunction · 0.85
vm_radix_lookup_geFunction · 0.85
vm_radix_lookup_leFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected