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

Function bt_hashhead

freebsd/kern/subr_vmem.c:444–454  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

442/* ---- boundary tag hash */
443
444static struct vmem_hashlist *
445bt_hashhead(vmem_t *vm, vmem_addr_t addr)
446{
447 struct vmem_hashlist *list;
448 unsigned int hash;
449
450 hash = hash32_buf(&addr, sizeof(addr), 0);
451 list = &vm->vm_hashlist[hash % vm->vm_hashsize];
452
453 return list;
454}
455
456static bt_t *
457bt_lookupbusy(vmem_t *vm, vmem_addr_t addr)

Callers 2

bt_lookupbusyFunction · 0.85
bt_insbusyFunction · 0.85

Calls 1

hash32_bufFunction · 0.85

Tested by

no test coverage detected