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

Function itimer_accept

freebsd/kern/kern_time.c:1578–1593  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1576}
1577
1578int
1579itimer_accept(struct proc *p, int timerid, ksiginfo_t *ksi)
1580{
1581 struct itimer *it;
1582
1583 PROC_LOCK_ASSERT(p, MA_OWNED);
1584 it = itimer_find(p, timerid);
1585 if (it != NULL) {
1586 ksi->ksi_overrun = it->it_overrun;
1587 it->it_overrun_last = it->it_overrun;
1588 it->it_overrun = 0;
1589 ITIMER_UNLOCK(it);
1590 return (0);
1591 }
1592 return (EINVAL);
1593}
1594
1595int
1596itimespecfix(struct timespec *ts)

Callers 2

kern_sigtimedwaitFunction · 0.85
postsigFunction · 0.85

Calls 1

itimer_findFunction · 0.85

Tested by

no test coverage detected