Lines Matching refs:fds
210 PollTraceEntry(pollfd* fds, int count, bool resultEvents)
215 if (fds != NULL && count > 0) {
217 if (resultEvents ? fds[i].revents : fds[i].events)
227 for (int i = 0; i < fCount; fds++) {
228 uint16 events = resultEvents ? fds->revents : fds->events;
230 fEntries[i].fd = fds->fd;
294 PollBegin(pollfd* fds, int count, bigtime_t timeout)
296 PollTraceEntry(fds, count, false),
316 PollDone(pollfd* fds, int count, int result)
318 PollTraceEntry(fds, result >= 0 ? count : 0, true),
449 // check if fds are valid before doing anything
569 common_poll(struct pollfd *fds, nfds_t numFDs, bigtime_t timeout,
578 T(PollBegin(fds, numFDs, timeout));
584 int fd = fds[i].fd;
587 sync->set[i].selected_events = fds[i].events
590 fds[i].revents = 0;
594 fds[i].revents = POLLNVAL;
623 if (fds[i].fd >= 0 && (fds[i].revents & POLLNVAL) == 0)
624 deselect_fd(fds[i].fd, sync->set + i, kernel);
633 if (fds[i].fd < 0)
637 fds[i].revents = sync->set[i].events
639 if (fds[i].revents != 0)
653 T(PollDone(fds, numFDs, count));
918 _kern_poll(struct pollfd *fds, int numFDs, bigtime_t timeout,
924 return common_poll(fds, numFDs, timeout, sigMask, true);
1048 BStackOrHeapArray<struct pollfd, 16> fds(numFDs);
1049 if (!fds.IsValid())
1057 if (user_memcpy(fds, userfds, bytes) < B_OK)
1068 status_t result = common_poll(fds, numFDs, timeout,
1072 if (numFDs > 0 && user_memcpy(userfds, fds, bytes) != 0) {