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

Function sys_ktimer_gettime

freebsd/kern/kern_time.c:1408–1418  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1406};
1407#endif
1408int
1409sys_ktimer_gettime(struct thread *td, struct ktimer_gettime_args *uap)
1410{
1411 struct itimerspec val;
1412 int error;
1413
1414 error = kern_ktimer_gettime(td, uap->timerid, &val);
1415 if (error == 0)
1416 error = copyout(&val, uap->value, sizeof(val));
1417 return (error);
1418}
1419
1420int
1421kern_ktimer_gettime(struct thread *td, int timer_id, struct itimerspec *val)

Callers

nothing calls this directly

Calls 2

kern_ktimer_gettimeFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected