Home | History | Annotate | Download | only in libevent

Lines Matching full:events

65 	struct pollfd *events;
106 devpoll_queue(struct devpollop *devpollop, int fd, int events) {
120 pfd->events = events;
154 devpollop->events = calloc(nfiles, sizeof(struct pollfd));
155 if (devpollop->events == NULL) {
164 free(devpollop->events);
174 free(devpollop->events);
216 struct pollfd *events = devpollop->events;
227 dvp.dp_fds = devpollop->events;
249 int what = events[i].revents;
252 assert(events[i].fd < devpollop->nfds);
253 evdp = &devpollop->fds[events[i].fd];
294 int fd, events;
308 * It's not necessary to OR the existing read/write events that we
310 * The /dev/poll driver ORs any new events with the existing events
314 events = 0;
320 events |= POLLIN;
328 events |= POLLOUT;
331 if (devpoll_queue(devpollop, fd, events) != 0)
334 /* Update events responsible */
348 int fd, events;
359 events = 0;
361 events |= POLLIN;
363 events |= POLLOUT;
367 * to use POLLREMOVE by itself. This removes ALL events for the fd
368 * provided so if we care about two events and are only removing one
375 if ((events & (POLLIN|POLLOUT)) != (POLLIN|POLLOUT)) {
377 * We're not deleting all events, so we must resubmit the
381 if ((events & POLLIN) && evdp->evwrite != NULL) {
385 } else if ((events & POLLOUT) && evdp->evread != NULL) {
408 if (devpollop->events)
409 free(devpollop->events);