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

Function slab_data

freebsd/vm/uma_int.h:414–422  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

412}
413
414static inline void *
415slab_data(uma_slab_t slab, uma_keg_t keg)
416{
417
418 if ((keg->uk_flags & UMA_ZFLAG_OFFPAGE) == 0)
419 return ((void *)((uintptr_t)slab - keg->uk_pgoff));
420 else
421 return (slab_tohashslab(slab)->uhs_data);
422}
423
424static inline void *
425slab_item(uma_slab_t slab, uma_keg_t keg, int index)

Callers 3

slab_itemFunction · 0.70
slab_item_indexFunction · 0.70
keg_free_slabFunction · 0.70

Calls 1

slab_tohashslabFunction · 0.70

Tested by

no test coverage detected