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

Function sys_clock_gettime

freebsd/kern/kern_time.c:229–240  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

227#endif
228/* ARGSUSED */
229int
230sys_clock_gettime(struct thread *td, struct clock_gettime_args *uap)
231{
232 struct timespec ats;
233 int error;
234
235 error = kern_clock_gettime(td, uap->clock_id, &ats);
236 if (error == 0)
237 error = copyout(&ats, uap->tp, sizeof(ats));
238
239 return (error);
240}
241
242static inline void
243cputick2timespec(uint64_t runtime, struct timespec *ats)

Callers

nothing calls this directly

Calls 2

kern_clock_gettimeFunction · 0.85
copyoutFunction · 0.50

Tested by

no test coverage detected