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

Function sys_poll

freebsd/kern/sys_generic.c:1404–1419  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1402}
1403
1404int
1405sys_poll(struct thread *td, struct poll_args *uap)
1406{
1407 struct timespec ts, *tsp;
1408
1409 if (uap->timeout != INFTIM) {
1410 if (uap->timeout < 0)
1411 return (EINVAL);
1412 ts.tv_sec = uap->timeout / 1000;
1413 ts.tv_nsec = (uap->timeout % 1000) * 1000000;
1414 tsp = &ts;
1415 } else
1416 tsp = NULL;
1417
1418 return (kern_poll(td, uap->fds, uap->nfds, tsp, NULL));
1419}
1420
1421int
1422kern_poll(struct thread *td, struct pollfd *ufds, u_int nfds,

Callers

nothing calls this directly

Calls 1

kern_pollFunction · 0.85

Tested by

no test coverage detected