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

Function bt_save

freebsd/kern/subr_vmem.c:374–380  ·  view source on GitHub ↗

* Hide MAXALLOC tags before dropping the arena lock to ensure that a * concurrent allocation attempt does not grab them. */

Source from the content-addressed store, hash-verified

372 * concurrent allocation attempt does not grab them.
373 */
374static void
375bt_save(vmem_t *vm)
376{
377 KASSERT(vm->vm_nfreetags >= BT_MAXALLOC,
378 ("%s: insufficient free tags %d", __func__, vm->vm_nfreetags));
379 vm->vm_nfreetags -= BT_MAXALLOC;
380}
381
382static void
383bt_restore(vmem_t *vm)

Callers 2

vmem_importFunction · 0.85
vmem_try_fetchFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected