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

Function sys_getrusage

freebsd/kern/kern_resource.c:1048–1058  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1046};
1047#endif
1048int
1049sys_getrusage(struct thread *td, struct getrusage_args *uap)
1050{
1051 struct rusage ru;
1052 int error;
1053
1054 error = kern_getrusage(td, uap->who, &ru);
1055 if (error == 0)
1056 error = copyout(&ru, uap->rusage, sizeof(struct rusage));
1057 return (error);
1058}
1059
1060int
1061kern_getrusage(struct thread *td, int who, struct rusage *rup)

Callers

nothing calls this directly

Calls 2

kern_getrusageFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected