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

Function racct_set

freebsd/kern/kern_racct.c:740–754  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

738}
739
740int
741racct_set(struct proc *p, int resource, uint64_t amount)
742{
743 int error;
744
745 if (!racct_enable)
746 return (0);
747
748 SDT_PROBE3(racct, , rusage, set__force, p, resource, amount);
749
750 RACCT_LOCK();
751 error = racct_set_locked(p, resource, amount, 0);
752 RACCT_UNLOCK();
753 return (error);
754}
755
756void
757racct_set_force(struct proc *p, int resource, uint64_t amount)

Callers 4

exec_aout_imgactFunction · 0.70
racct_set_unlockedFunction · 0.70
racctdFunction · 0.70
__elfN(enforce_limits)Function · 0.70

Calls 1

racct_set_lockedFunction · 0.85

Tested by

no test coverage detected