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

Function itimer_find

freebsd/kern/kern_time.c:1303–1320  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1301}
1302
1303static struct itimer *
1304itimer_find(struct proc *p, int timerid)
1305{
1306 struct itimer *it;
1307
1308 PROC_LOCK_ASSERT(p, MA_OWNED);
1309 if ((p->p_itimers == NULL) ||
1310 (timerid < 0) || (timerid >= TIMER_MAX) ||
1311 (it = p->p_itimers->its_timers[timerid]) == NULL) {
1312 return (NULL);
1313 }
1314 ITIMER_LOCK(it);
1315 if ((it->it_flags & ITF_DELETING) != 0) {
1316 ITIMER_UNLOCK(it);
1317 it = NULL;
1318 }
1319 return (it);
1320}
1321
1322int
1323kern_ktimer_delete(struct thread *td, int timerid)

Callers 5

kern_ktimer_deleteFunction · 0.85
kern_ktimer_settimeFunction · 0.85
kern_ktimer_gettimeFunction · 0.85
kern_ktimer_getoverrunFunction · 0.85
itimer_acceptFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected