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

Function racct_init

freebsd/kern/kern_racct.c:1351–1363  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1349SYSINIT(racctd, SI_SUB_RACCTD, SI_ORDER_FIRST, racctd_init, NULL);
1350
1351static void
1352racct_init(void)
1353{
1354 if (!racct_enable)
1355 return;
1356
1357 racct_zone = uma_zcreate("racct", sizeof(struct racct),
1358 NULL, NULL, NULL, NULL, UMA_ALIGN_PTR, 0);
1359 /*
1360 * XXX: Move this somewhere.
1361 */
1362 prison0.pr_prison_racct = prison_racct_find("0");
1363}
1364SYSINIT(racct, SI_SUB_RACCT, SI_ORDER_FIRST, racct_init, NULL);
1365
1366#endif /* !RACCT */

Callers

nothing calls this directly

Calls 2

uma_zcreateFunction · 0.85
prison_racct_findFunction · 0.85

Tested by

no test coverage detected