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

Function cache_alloc_item

freebsd/vm/uma_core.c:3368–3380  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3366#endif
3367
3368static inline void *
3369cache_alloc_item(uma_zone_t zone, uma_cache_t cache, uma_cache_bucket_t bucket,
3370 void *udata, int flags)
3371{
3372 void *item;
3373 int size, uz_flags;
3374
3375 item = cache_bucket_pop(cache, bucket);
3376 size = cache_uz_size(cache);
3377 uz_flags = cache_uz_flags(cache);
3378 critical_exit();
3379 return (item_ctor(zone, uz_flags, size, udata, flags, item));
3380}
3381
3382static __noinline void *
3383cache_alloc_retry(uma_zone_t zone, uma_cache_t cache, void *udata, int flags)

Callers 3

cache_alloc_retryFunction · 0.85
uma_zalloc_smrFunction · 0.85
uma_zalloc_argFunction · 0.85

Calls 5

cache_bucket_popFunction · 0.85
item_ctorFunction · 0.85
cache_uz_sizeFunction · 0.70
cache_uz_flagsFunction · 0.70
critical_exitFunction · 0.50

Tested by

no test coverage detected