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

Function sys_clock_getres

freebsd/kern/kern_time.c:429–442  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

427};
428#endif
429int
430sys_clock_getres(struct thread *td, struct clock_getres_args *uap)
431{
432 struct timespec ts;
433 int error;
434
435 if (uap->tp == NULL)
436 return (0);
437
438 error = kern_clock_getres(td, uap->clock_id, &ts);
439 if (error == 0)
440 error = copyout(&ts, uap->tp, sizeof(ts));
441 return (error);
442}
443
444int
445kern_clock_getres(struct thread *td, clockid_t clock_id, struct timespec *ts)

Callers

nothing calls this directly

Calls 2

kern_clock_getresFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected