Lines Matching refs:xevents

65     int                 xevents;  member
68 void (*callback)(int fd, int xevents, void *data);
86 int xevents; member
88 void (*callback)(int fd, int xevents, void *data);
274 void (*callback)(int fd, int xevents, void *data), in ospoll_add() argument
295 ospoll->fds[pos].xevents = 0; in ospoll_add()
324 osfd->xevents = 0; in ospoll_add()
370 osfd->xevents = 0; in ospoll_add()
470 if (osfd->xevents & X_NOTIFY_READ) in epoll_mod()
472 if (osfd->xevents & X_NOTIFY_WRITE) in epoll_mod()
484 if (osfd->xevents & X_NOTIFY_READ) in epoll_mod()
486 if (osfd->xevents & X_NOTIFY_WRITE) in epoll_mod()
496 ospoll_listen(struct ospoll *ospoll, int fd, int xevents) in ospoll_listen() argument
503 if (xevents & X_NOTIFY_READ) { in ospoll_listen()
507 if (xevents & X_NOTIFY_WRITE) { in ospoll_listen()
512 ospoll->fds[pos].xevents |= xevents; in ospoll_listen()
516 osfd->xevents |= xevents; in ospoll_listen()
520 if (xevents & X_NOTIFY_READ) { in ospoll_listen()
524 if (xevents & X_NOTIFY_WRITE) { in ospoll_listen()
533 ospoll_mute(struct ospoll *ospoll, int fd, int xevents) in ospoll_mute() argument
540 osfd->xevents &= ~xevents; in ospoll_mute()
543 if (osfd->xevents) { in ospoll_mute()
545 if (osfd->xevents & X_NOTIFY_READ) { in ospoll_mute()
548 if (osfd->xevents & X_NOTIFY_WRITE) { in ospoll_mute()
556 osfd->xevents &= ~xevents; in ospoll_mute()
560 if (xevents & X_NOTIFY_READ) in ospoll_mute()
562 if (xevents & X_NOTIFY_WRITE) in ospoll_mute()
589 int xevents = 0; in ospoll_wait() local
591 xevents |= X_NOTIFY_READ; in ospoll_wait()
593 xevents |= X_NOTIFY_WRITE; in ospoll_wait()
595 xevents |= X_NOTIFY_ERROR; in ospoll_wait()
596 osfd->callback(osfd->fd, xevents, osfd->data); in ospoll_wait()
618 int xevents = 0; in ospoll_wait() local
621 xevents |= X_NOTIFY_READ; in ospoll_wait()
623 xevents |= X_NOTIFY_WRITE; in ospoll_wait()
625 xevents |= X_NOTIFY_ERROR; in ospoll_wait()
628 osfd->callback(osfd->fd, xevents, osfd->data); in ospoll_wait()
647 int xevents = 0; in ospoll_wait() local
650 xevents |= X_NOTIFY_READ; in ospoll_wait()
652 xevents |= X_NOTIFY_WRITE; in ospoll_wait()
654 xevents |= X_NOTIFY_ERROR; in ospoll_wait()
657 osfd->callback(osfd->fd, xevents, osfd->data); in ospoll_wait()
674 int xevents = 0; in ospoll_wait() local
676 xevents |= X_NOTIFY_READ; in ospoll_wait()
678 xevents |= X_NOTIFY_WRITE; in ospoll_wait()
680 xevents |= X_NOTIFY_ERROR; in ospoll_wait()
681 ospoll->osfds[f].callback(ospoll->fds[f].fd, xevents, in ospoll_wait()