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

Function racct_create

freebsd/kern/kern_racct.c:454–466  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

452}
453
454void
455racct_create(struct racct **racctp)
456{
457
458 if (!racct_enable)
459 return;
460
461 SDT_PROBE1(racct, , racct, create, racctp);
462
463 KASSERT(*racctp == NULL, ("racct already allocated"));
464
465 *racctp = uma_zalloc(racct_zone, M_WAITOK | M_ZERO);
466}
467
468static void
469racct_destroy_locked(struct racct **racctp)

Callers 5

prison_racct_find_lockedFunction · 0.85
loginclass_findFunction · 0.85
racct_proc_forkFunction · 0.85
proc0_initFunction · 0.85
uifindFunction · 0.85

Calls 1

uma_zallocFunction · 0.50

Tested by

no test coverage detected