Lines Matching refs:fds
150 STAILQ_ENTRY(selfd) sf_link; /* (k) fds owned by this td. */
151 TAILQ_ENTRY(selfd) sf_threads; /* (f) fds on this selinfo. */
1221 * Traverse the list of fds attached to this thread's seltd and check for
1317 return (kern_poll(td, uap->fds, uap->nfds, tsp, NULL));
1321 kern_poll(struct thread *td, struct pollfd *fds, u_int nfds,
1364 error = copyin(fds, bits, ni);
1406 error = pollout(td, bits, fds, nfds);
1438 * fds is still a pointer to user space. kern_poll() will
1442 return (kern_poll(td, uap->fds, uap->nfds, tsp, ssp));
1501 pollout(td, fds, ufds, nfd)
1503 struct pollfd *fds;
1512 error = copyout(&fds->revents, &ufds->revents,
1516 if (fds->revents != 0)
1518 fds++;
1526 pollscan(td, fds, nfd)
1528 struct pollfd *fds;
1539 for (i = 0; i < nfd; i++, fds++) {
1540 if (fds->fd > fdp->fd_lastfile) {
1541 fds->revents = POLLNVAL;
1543 } else if (fds->fd < 0) {
1544 fds->revents = 0;
1546 fp = fdp->fd_ofiles[fds->fd].fde_file;
1549 cap_check(cap_rights(fdp, fds->fd),
1555 fds->revents = POLLNVAL;
1562 selfdalloc(td, fds);
1563 fds->revents = fo_poll(fp, fds->events,
1569 if ((fds->revents & POLLHUP) != 0)
1570 fds->revents &= ~POLLOUT;
1572 if (fds->revents != 0)
1589 struct pollfd *fds;