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

Function malloc_large_slab

freebsd/kern/kern_malloc.c:567–574  ·  view source on GitHub ↗

* Handle large allocations and frees by using kmem_malloc directly. */

Source from the content-addressed store, hash-verified

565 * Handle large allocations and frees by using kmem_malloc directly.
566 */
567static inline bool
568malloc_large_slab(uma_slab_t slab)
569{
570 uintptr_t va;
571
572 va = (uintptr_t)slab;
573 return ((va & 1) != 0);
574}
575
576static inline size_t
577malloc_large_size(uma_slab_t slab)

Callers 4

freeFunction · 0.85
zfreeFunction · 0.85
reallocFunction · 0.85
malloc_usable_sizeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected