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

Function racct_add_force

freebsd/kern/kern_racct.c:596–608  ·  view source on GitHub ↗

* Increase allocation of 'resource' by 'amount' for process 'p'. * Doesn't check for limits and never fails. */

Source from the content-addressed store, hash-verified

594 * Doesn't check for limits and never fails.
595 */
596void
597racct_add_force(struct proc *p, int resource, uint64_t amount)
598{
599
600 if (!racct_enable)
601 return;
602
603 SDT_PROBE3(racct, , rusage, add__force, p, resource, amount);
604
605 RACCT_LOCK();
606 racct_add_locked(p, resource, amount, 1);
607 RACCT_UNLOCK();
608}
609
610static void
611racct_add_cred_locked(struct ucred *cred, int resource, uint64_t amount)

Callers 2

proc0_initFunction · 0.70
physioFunction · 0.70

Calls 1

racct_add_lockedFunction · 0.85

Tested by

no test coverage detected