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

Function zone_foreach

freebsd/vm/uma_core.c:2873–2880  ·  view source on GitHub ↗

* Traverses every zone in the system and calls a callback * * Arguments: * zfunc A pointer to a function which accepts a zone * as an argument. * * Returns: * Nothing */

Source from the content-addressed store, hash-verified

2871 * Nothing
2872 */
2873static void
2874zone_foreach(void (*zfunc)(uma_zone_t, void *arg), void *arg)
2875{
2876
2877 rw_rlock(&uma_rwlock);
2878 zone_foreach_unlocked(zfunc, arg);
2879 rw_runlock(&uma_rwlock);
2880}
2881
2882/*
2883 * Initialize the kernel memory allocator. This is done after pages can be

Callers 4

uma_timeoutFunction · 0.85
pcpu_cache_drain_safeFunction · 0.85
zone_ctorFunction · 0.85
uma_reclaimFunction · 0.85

Calls 1

zone_foreach_unlockedFunction · 0.85

Tested by

no test coverage detected