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

Function slab_item_index

freebsd/vm/uma_int.h:433–440  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

431}
432
433static inline int
434slab_item_index(uma_slab_t slab, uma_keg_t keg, void *item)
435{
436 uintptr_t data;
437
438 data = (uintptr_t)slab_data(slab, keg);
439 return (((uintptr_t)item - data) / keg->uk_rsize);
440}
441
442STAILQ_HEAD(uma_bucketlist, uma_bucket);
443

Callers 3

slab_free_itemFunction · 0.70
uma_dbg_allocFunction · 0.70
uma_dbg_freeFunction · 0.70

Calls 1

slab_dataFunction · 0.70

Tested by

no test coverage detected