Lines Matching defs:events

172 	/* The structure that describe the interested events and the source fd */
207 * happened while transferring ready events to userspace w/out
261 struct epoll_event __user *events;
368 * ep_events_available - Checks if ready events might be available.
372 * Returns: Returns a value different than zero if ready events are available,
390 * Busy poll if globally on and supporting sockets found && no events,
700 * empty list. Also, set ep->ovflist to NULL so that events
719 * other events might have been queued by the poll callback.
741 * releasing the lock, events will be queued in the normal way inside
891 pt->_key = epi->event.events;
893 return vfs_poll(epi->ffd.file, pt) & epi->event.events;
901 locked) & epi->event.events;
921 * caller requested events goes. We can remove it here.
940 * Proceed to find out if wanted events are really available inside
958 seq_printf(m, "tfd: %8d events: %8x data: %16llx "
960 epi->ffd.fd, epi->event.events,
1197 * have events to report.
1200 * events from another file descriptors, thus all modifications to ->rdllist
1231 if (!(epi->event.events & ~EP_PRIVATE_BITS))
1235 * Check the events coming with the callback. At this stage, not
1236 * every device reports the events in the "key" parameter of the
1240 if (pollflags && !(pollflags & epi->event.events))
1244 * If we are transferring events to userspace, we can hold no locks
1246 * semantics). All the events that happen during that period of time are
1263 if ((epi->event.events & EPOLLEXCLUSIVE) &&
1267 if (epi->event.events & EPOLLIN)
1271 if (epi->event.events & EPOLLOUT)
1291 if (!(epi->event.events & EPOLLEXCLUSIVE))
1327 if (epi->event.events & EPOLLEXCLUSIVE)
1524 if (epi->event.events & EPOLLWAKEUP) {
1581 /* Notify waiting tasks that events are available */
1645 epi->event.events = event->events; /* need barrier below */
1647 if (epi->event.events & EPOLLWAKEUP) {
1658 * we do not miss events from ep_poll_callback if an
1664 * 2) We also need to ensure we do not miss _past_ events
1686 /* Notify waiting tasks that events are available */
1708 struct epoll_event __user *uevent = esed->events;
1754 if (__put_user(revents, &uevent->events) ||
1764 if (epi->event.events & EPOLLONESHOT)
1765 epi->event.events &= EP_PRIVATE_BITS;
1766 else if (!(epi->event.events & EPOLLET)) {
1771 * epoll_wait() will check again the events
1787 struct epoll_event __user *events, int maxevents)
1792 esed.events = events;
1829 * ep_poll - Retrieves ready events, and delivers them to the caller supplied
1833 * @events: Pointer to the userspace buffer where the ready events should be
1835 * @maxevents: Size (in terms of number of events) of the caller event buffer.
1836 * @timeout: Maximum timeout for the ready events fetch operation, in
1842 * Returns: Returns the number of ready events which have been fetched, or an
1845 static int ep_poll(struct eventpoll *ep, struct epoll_event __user *events,
1927 * period of time although events are pending, so lock is
1944 * We were woken up, thus go and try to harvest some events.
1959 * empty, it needs to harvest events.
1972 * finding more events available and fetching
1978 * Try to transfer events to user space. In case we get 0 events and
1983 !(res = ep_send_events(ep, events, maxevents)) && !timed_out)
2192 if (ep_op_has_event(op) && (epds->events & EPOLLEXCLUSIVE)) {
2196 (epds->events & ~EPOLLEXCLUSIVE_OK_BITS)))
2268 epds->events |= EPOLLERR | EPOLLHUP;
2281 if (!(epi->event.events & EPOLLEXCLUSIVE)) {
2282 epds->events |= EPOLLERR | EPOLLHUP;
2329 static int do_epoll_wait(int epfd, struct epoll_event __user *events,
2341 if (!access_ok(events, maxevents * sizeof(struct epoll_event)))
2363 /* Time to fish for events ... */
2364 error = ep_poll(ep, events, maxevents, timeout);
2371 SYSCALL_DEFINE4(epoll_wait, int, epfd, struct epoll_event __user *, events,
2374 return do_epoll_wait(epfd, events, maxevents, timeout);
2381 SYSCALL_DEFINE6(epoll_pwait, int, epfd, struct epoll_event __user *, events,
2395 error = do_epoll_wait(epfd, events, maxevents, timeout);
2403 struct epoll_event __user *, events,
2418 err = do_epoll_wait(epfd, events, maxevents, timeout);