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

Function uma_zone_reclaim

freebsd/vm/uma_core.c:5021–5039  ·  view source on GitHub ↗

See uma.h */

Source from the content-addressed store, hash-verified

5019
5020/* See uma.h */
5021void
5022uma_zone_reclaim(uma_zone_t zone, int req)
5023{
5024
5025 switch (req) {
5026 case UMA_RECLAIM_TRIM:
5027 zone_trim(zone, NULL);
5028 break;
5029 case UMA_RECLAIM_DRAIN:
5030 zone_drain(zone, NULL);
5031 break;
5032 case UMA_RECLAIM_DRAIN_CPU:
5033 pcpu_cache_drain_safe(zone);
5034 zone_drain(zone, NULL);
5035 break;
5036 default:
5037 panic("unhandled reclamation request %d", req);
5038 }
5039}
5040
5041/* See uma.h */
5042int

Callers 5

kmem_cache_reap_soonFunction · 0.85
mb_dtor_packFunction · 0.85
m_clgetFunction · 0.85
qc_drainFunction · 0.85
bucket_zone_drainFunction · 0.85

Calls 4

zone_trimFunction · 0.85
zone_drainFunction · 0.85
pcpu_cache_drain_safeFunction · 0.85
panicFunction · 0.50

Tested by

no test coverage detected