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

Function uma_startup3

freebsd/vm/uma_core.c:3010–3026  ·  view source on GitHub ↗

* Finish our initialization steps. */

Source from the content-addressed store, hash-verified

3008 * Finish our initialization steps.
3009 */
3010static void
3011uma_startup3(void *arg __unused)
3012{
3013
3014#ifdef INVARIANTS
3015 TUNABLE_INT_FETCH("vm.debug.divisor", &dbg_divisor);
3016 uma_dbg_cnt = counter_u64_alloc(M_WAITOK);
3017 uma_skip_cnt = counter_u64_alloc(M_WAITOK);
3018#endif
3019 zone_foreach_unlocked(zone_alloc_sysctl, NULL);
3020 callout_init(&uma_callout, 1);
3021 callout_reset(&uma_callout, UMA_TIMEOUT * hz, uma_timeout, NULL);
3022 booted = BOOT_RUNNING;
3023
3024 EVENTHANDLER_REGISTER(shutdown_post_sync, uma_shutdown, NULL,
3025 EVENTHANDLER_PRI_FIRST);
3026}
3027SYSINIT(uma_startup3, SI_SUB_VM_CONF, SI_ORDER_SECOND, uma_startup3, NULL);
3028
3029static void

Callers

nothing calls this directly

Calls 3

counter_u64_allocFunction · 0.85
zone_foreach_unlockedFunction · 0.85
callout_initFunction · 0.50

Tested by

no test coverage detected