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

Function itimespecfix

freebsd/kern/kern_time.c:1595–1604  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1593}
1594
1595int
1596itimespecfix(struct timespec *ts)
1597{
1598
1599 if (ts->tv_sec < 0 || ts->tv_nsec < 0 || ts->tv_nsec >= 1000000000)
1600 return (EINVAL);
1601 if (ts->tv_sec == 0 && ts->tv_nsec != 0 && ts->tv_nsec < tick * 1000)
1602 ts->tv_nsec = tick * 1000;
1603 return (0);
1604}
1605
1606/* Timeout callback for realtime timer */
1607static void

Callers 1

realtimer_settimeFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected