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

Function rufetchcalc

freebsd/kern/kern_resource.c:1185–1194  ·  view source on GitHub ↗

* Atomically perform a rufetch and a calcru together. * Consumers, can safely assume the calcru is executed only once * rufetch is completed. */

Source from the content-addressed store, hash-verified

1183 * rufetch is completed.
1184 */
1185void
1186rufetchcalc(struct proc *p, struct rusage *ru, struct timeval *up,
1187 struct timeval *sp)
1188{
1189
1190 PROC_STATLOCK(p);
1191 rufetch(p, ru);
1192 calcru(p, up, sp);
1193 PROC_STATUNLOCK(p);
1194}
1195
1196/*
1197 * Allocate a new resource limits structure and initialize its

Callers 3

acct_processFunction · 0.85
tty_infoFunction · 0.85
kern_getrusageFunction · 0.85

Calls 2

rufetchFunction · 0.85
calcruFunction · 0.85

Tested by

no test coverage detected