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

Function domaininit

freebsd/kern/uipc_domain.c:244–258  ·  view source on GitHub ↗

ARGSUSED*/

Source from the content-addressed store, hash-verified

242
243/* ARGSUSED*/
244static void
245domaininit(void *dummy)
246{
247
248 if (max_linkhdr < 16) /* XXX */
249 max_linkhdr = 16;
250
251 callout_init(&pffast_callout, 1);
252 callout_init(&pfslow_callout, 1);
253
254 mtx_lock(&dom_mtx);
255 KASSERT(domain_init_status == 0, ("domaininit called too late!"));
256 domain_init_status = 1;
257 mtx_unlock(&dom_mtx);
258}
259
260/* ARGSUSED*/
261static void

Callers

nothing calls this directly

Calls 3

callout_initFunction · 0.70
mtx_lockFunction · 0.70
mtx_unlockFunction · 0.70

Tested by

no test coverage detected