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

Function uma_zdestroy

freebsd/vm/uma_core.c:3160–3174  ·  view source on GitHub ↗

See uma.h */

Source from the content-addressed store, hash-verified

3158
3159/* See uma.h */
3160void
3161uma_zdestroy(uma_zone_t zone)
3162{
3163
3164 /*
3165 * Large slabs are expensive to reclaim, so don't bother doing
3166 * unnecessary work if we're shutting down.
3167 */
3168 if (booted == BOOT_SHUTDOWN &&
3169 zone->uz_fini == NULL && zone->uz_release == zone_release)
3170 return;
3171 sx_slock(&uma_reclaim_lock);
3172 zone_free_item(zones, zone, NULL, SKIP_NONE);
3173 sx_sunlock(&uma_reclaim_lock);
3174}
3175
3176void
3177uma_zwait(uma_zone_t zone)

Callers 15

kmem_cache_destroyFunction · 0.85
system_taskq_finiFunction · 0.85
zfs_znode_finiFunction · 0.85
pf_unload_vnetFunction · 0.85
pf_normalize_cleanupFunction · 0.85
pfr_cleanupFunction · 0.85
pf_mtag_cleanupFunction · 0.85
pf_cleanupFunction · 0.85
ipfw_dyn_uninitFunction · 0.85
ipfw_destroy_countersFunction · 0.85
nat64lsn_uninit_internalFunction · 0.85
udp_destroyFunction · 0.85

Calls 1

zone_free_itemFunction · 0.85

Tested by

no test coverage detected