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

Function uma_zfree_debug

freebsd/vm/uma_core.c:3348–3365  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3346}
3347
3348static int
3349uma_zfree_debug(uma_zone_t zone, void *item, void *udata)
3350{
3351 KASSERT(curthread->td_critnest == 0 || SCHEDULER_STOPPED(),
3352 ("uma_zfree_debug: called with spinlock or critical section held"));
3353
3354#ifdef DEBUG_MEMGUARD
3355 if ((zone->uz_flags & UMA_ZONE_SMR) == 0 && is_memguard_addr(item)) {
3356 if (zone->uz_dtor != NULL)
3357 zone->uz_dtor(item, zone->uz_size, udata);
3358 if (zone->uz_fini != NULL)
3359 zone->uz_fini(item, zone->uz_size);
3360 memguard_free(item);
3361 return (EJUSTRETURN);
3362 }
3363#endif
3364 return (0);
3365}
3366#endif
3367
3368static inline void *

Callers 2

uma_zfree_smrFunction · 0.85
uma_zfree_argFunction · 0.85

Calls 2

is_memguard_addrFunction · 0.85
memguard_freeFunction · 0.85

Tested by

no test coverage detected