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

Function init_turnstile0

freebsd/kern/subr_turnstile.c:423–436  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

421#endif
422
423static void
424init_turnstile0(void *dummy)
425{
426
427 turnstile_zone = uma_zcreate("TURNSTILE", sizeof(struct turnstile),
428 NULL,
429#ifdef INVARIANTS
430 turnstile_dtor,
431#else
432 NULL,
433#endif
434 turnstile_init, turnstile_fini, UMA_ALIGN_CACHE, UMA_ZONE_NOFREE);
435 thread0.td_turnstile = turnstile_alloc();
436}
437SYSINIT(turnstile0, SI_SUB_LOCK, SI_ORDER_ANY, init_turnstile0, NULL);
438
439/*

Callers

nothing calls this directly

Calls 2

uma_zcreateFunction · 0.85
turnstile_allocFunction · 0.85

Tested by

no test coverage detected