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

Function sys_clock_settime

freebsd/kern/kern_time.c:384–393  ·  view source on GitHub ↗

ARGSUSED */

Source from the content-addressed store, hash-verified

382#endif
383/* ARGSUSED */
384int
385sys_clock_settime(struct thread *td, struct clock_settime_args *uap)
386{
387 struct timespec ats;
388 int error;
389
390 if ((error = copyin(uap->tp, &ats, sizeof(ats))) != 0)
391 return (error);
392 return (kern_clock_settime(td, uap->clock_id, &ats));
393}
394
395static int allow_insane_settime = 0;
396SYSCTL_INT(_debug, OID_AUTO, allow_insane_settime, CTLFLAG_RWTUN,

Callers

nothing calls this directly

Calls 2

kern_clock_settimeFunction · 0.85
copyinFunction · 0.50

Tested by

no test coverage detected