| /f-stack/app/nginx-1.16.1/src/event/modules/ |
| H A D | ngx_devpoll_module.c | 317 change_list[nchanges].revents = 0; in ngx_devpoll_set_event() 343 int events, revents, rc; in ngx_devpoll_process_events() local 413 revents = event_list[i].revents; in ngx_devpoll_process_events() 421 pfd.revents = 0; in ngx_devpoll_process_events() 430 fd, revents); in ngx_devpoll_process_events() 436 revents, fd); in ngx_devpoll_process_events() 443 revents, fd, rc, pfd.fd, pfd.revents); in ngx_devpoll_process_events() 447 pfd.revents = 0; in ngx_devpoll_process_events() 491 revents |= POLLIN|POLLOUT; in ngx_devpoll_process_events() 496 if ((revents & POLLIN) && rev->active) { in ngx_devpoll_process_events() [all …]
|
| H A D | ngx_poll_module.c | 148 event_list[nevents].revents = 0; in ngx_poll_add_event() 241 int ready, revents; in ngx_poll_process_events() local 303 revents = event_list[i].revents; in ngx_poll_process_events() 308 i, event_list[i].fd, event_list[i].events, revents); in ngx_poll_process_events() 310 if (revents) { in ngx_poll_process_events() 317 if (revents & POLLNVAL) { in ngx_poll_process_events() 323 if (revents & ~(POLLIN|POLLOUT|POLLERR|POLLHUP|POLLNVAL)) { in ngx_poll_process_events() 356 if (revents & (POLLERR|POLLHUP|POLLNVAL)) { in ngx_poll_process_events() 363 revents |= POLLIN|POLLOUT; in ngx_poll_process_events() 368 if ((revents & POLLIN) && c->read->active) { in ngx_poll_process_events() [all …]
|
| H A D | ngx_win32_poll_module.c | 168 event_list[nevents].revents = 0; in ngx_poll_add_event() 264 int ready, revents; in ngx_poll_process_events() local 313 revents = event_list[i].revents; in ngx_poll_process_events() 318 i, event_list[i].fd, event_list[i].events, revents); in ngx_poll_process_events() 320 if (revents) { in ngx_poll_process_events() 327 if (revents & POLLNVAL) { in ngx_poll_process_events() 333 if (revents & ~(POLLIN|POLLOUT|POLLERR|POLLHUP|POLLNVAL)) { in ngx_poll_process_events() 366 if (revents & (POLLERR|POLLHUP|POLLNVAL)) { in ngx_poll_process_events() 373 revents |= POLLIN|POLLOUT; in ngx_poll_process_events() 378 if ((revents & POLLIN) && c->read->active) { in ngx_poll_process_events() [all …]
|
| H A D | ngx_eventport_module.c | 439 int n, revents; in ngx_eventport_process_events() local 525 revents = event_list[i].portev_events; in ngx_eventport_process_events() 529 (int) event_list[i].portev_object, revents); in ngx_eventport_process_events() 531 if (revents & (POLLERR|POLLHUP|POLLNVAL)) { in ngx_eventport_process_events() 534 (int) event_list[i].portev_object, revents); in ngx_eventport_process_events() 537 if (revents & ~(POLLIN|POLLOUT|POLLERR|POLLHUP|POLLNVAL)) { in ngx_eventport_process_events() 540 (int) event_list[i].portev_object, revents); in ngx_eventport_process_events() 543 if (revents & (POLLERR|POLLHUP|POLLNVAL)) { in ngx_eventport_process_events() 550 revents |= POLLIN|POLLOUT; in ngx_eventport_process_events() 560 if (revents & POLLIN) { in ngx_eventport_process_events() [all …]
|
| H A D | ngx_ff_host_event_module.c | 328 uint32_t revents; in ngx_ff_epoll_process_events() local 389 revents = event_list[i].events; in ngx_ff_epoll_process_events() 393 c->fd, revents, event_list[i].data.ptr); in ngx_ff_epoll_process_events() 395 if (revents & (EPOLLERR|EPOLLHUP)) { in ngx_ff_epoll_process_events() 398 c->fd, revents); in ngx_ff_epoll_process_events() 405 revents |= EPOLLIN|EPOLLOUT; in ngx_ff_epoll_process_events() 408 if ((revents & EPOLLIN) && rev->active) { in ngx_ff_epoll_process_events() 416 if ((revents & EPOLLOUT) && wev->active) { in ngx_ff_epoll_process_events()
|
| H A D | ngx_epoll_module.c | 787 uint32_t revents; in ngx_epoll_process_events() local 856 revents = event_list[i].events; in ngx_epoll_process_events() 860 c->fd, revents, event_list[i].data.ptr); in ngx_epoll_process_events() 862 if (revents & (EPOLLERR|EPOLLHUP)) { in ngx_epoll_process_events() 865 c->fd, revents); in ngx_epoll_process_events() 872 revents |= EPOLLIN|EPOLLOUT; in ngx_epoll_process_events() 876 if (revents & ~(EPOLLIN|EPOLLOUT|EPOLLERR|EPOLLHUP)) { in ngx_epoll_process_events() 879 c->fd, revents); in ngx_epoll_process_events() 883 if ((revents & EPOLLIN) && rev->active) { in ngx_epoll_process_events() 886 if (revents & EPOLLRDHUP) { in ngx_epoll_process_events() [all …]
|
| /f-stack/app/redis-5.0.5/deps/hiredis/adapters/ |
| H A D | glib.h | 77 return !!(redis->poll_fd.events & redis->poll_fd.revents); in redis_source_prepare() 84 return !!(redis->poll_fd.events & redis->poll_fd.revents); in redis_source_check() 94 if ((redis->poll_fd.revents & G_IO_OUT)) { in redis_source_dispatch() 96 redis->poll_fd.revents &= ~G_IO_OUT; in redis_source_dispatch() 99 if ((redis->poll_fd.revents & G_IO_IN)) { in redis_source_dispatch() 101 redis->poll_fd.revents &= ~G_IO_IN; in redis_source_dispatch() 140 source->poll_fd.revents = 0; in redis_source_new()
|
| H A D | libev.h | 46 static void redisLibevReadEvent(EV_P_ ev_io *watcher, int revents) { in redisLibevReadEvent() argument 50 ((void)revents); in redisLibevReadEvent() 56 static void redisLibevWriteEvent(EV_P_ ev_io *watcher, int revents) { in redisLibevWriteEvent() argument 60 ((void)revents); in redisLibevWriteEvent()
|
| /f-stack/freebsd/kern/ |
| H A D | sys_eventfd.c | 238 int revents; in eventfd_poll() local 241 revents = 0; in eventfd_poll() 244 revents |= events & (POLLIN | POLLRDNORM); in eventfd_poll() 247 revents |= events & (POLLOUT | POLLWRNORM); in eventfd_poll() 248 if (revents == 0) in eventfd_poll() 252 return (revents); in eventfd_poll()
|
| H A D | sys_procdesc.c | 428 int revents; in procdesc_poll() local 430 revents = 0; in procdesc_poll() 434 revents |= POLLHUP; in procdesc_poll() 435 if (revents == 0) { in procdesc_poll() 440 return (revents); in procdesc_poll()
|
| H A D | subr_log.c | 185 int revents = 0; in logpoll() local 190 revents |= events & (POLLIN | POLLRDNORM); in logpoll() 195 return (revents); in logpoll()
|
| H A D | tty_pts.c | 398 int revents = 0; in ptsdev_poll() local 412 revents |= events & (POLLIN|POLLRDNORM); in ptsdev_poll() 417 revents |= events & (POLLOUT|POLLWRNORM); in ptsdev_poll() 426 if (revents == 0) { in ptsdev_poll() 440 return (revents); in ptsdev_poll()
|
| H A D | sys_generic.c | 1582 fd->revents = POLLNVAL; in pollrescan() 1595 if (fd->revents != 0) in pollrescan() 1611 error = copyout(&fds->revents, &ufds->revents, in pollout() 1612 sizeof(ufds->revents)); in pollout() 1615 if (fds->revents != 0) in pollout() 1637 fds->revents = 0; in pollscan() 1645 fds->revents = POLLNVAL; in pollscan() 1654 fds->revents = fo_poll(fp, fds->events, in pollscan() 1664 if ((fds->revents & POLLHUP) != 0) in pollscan() 1665 fds->revents &= ~POLLOUT; in pollscan() [all …]
|
| H A D | sys_pipe.c | 1420 int levents, revents; in pipe_poll() local 1425 revents = 0; in pipe_poll() 1436 revents |= events & (POLLIN | POLLRDNORM); in pipe_poll() 1444 revents |= events & (POLLOUT | POLLWRNORM); in pipe_poll() 1455 revents |= (events & (POLLIN | POLLRDNORM)); in pipe_poll() 1458 revents |= POLLHUP; in pipe_poll() 1462 if (revents == 0) { in pipe_poll() 1484 return (revents); in pipe_poll()
|
| /f-stack/app/micro_thread/ |
| H A D | kqueue_proxy.cpp | 370 int revents = 0; in KqueueRcvEventList() local 389 revents |= KQ_EVENT_READ; in KqueueRcvEventList() 392 revents |= KQ_EVENT_WRITE; in KqueueRcvEventList() 398 KqueueCtrlDel(osfd, (revents & (KQ_EVENT_READ | KQ_EVENT_WRITE))); in KqueueRcvEventList() 401 obj->SetRcvEvents(revents); in KqueueRcvEventList() 409 if (revents & KQ_EVENT_READ) in KqueueRcvEventList() 418 if (revents & KQ_EVENT_WRITE) in KqueueRcvEventList()
|
| H A D | kqueue_proxy.h | 135 void SetRcvEvents(int revents) { _revents = revents; }; in SetRcvEvents() argument
|
| /f-stack/freebsd/contrib/ipfilter/netinet/ |
| H A D | mlfk_ipl.c | 427 int revents; in ipfpoll() local 432 revents = 0; in ipfpoll() 442 revents |= events & (POLLIN | POLLRDNORM); in ipfpoll() 447 revents |= events & (POLLIN | POLLRDNORM); in ipfpoll() 451 revents |= events & (POLLIN | POLLRDNORM); in ipfpoll() 453 revents |= events & (POLLOUT | POLLWRNORM); in ipfpoll() 461 if ((revents == 0) && ((events & (POLLIN|POLLRDNORM)) != 0)) in ipfpoll() 465 return revents; in ipfpoll()
|
| /f-stack/dpdk/lib/librte_vhost/ |
| H A D | fd_man.c | 100 pfd->revents = 0; in fdset_add_fd() 271 if (!pfd->revents) { in fdset_event_dispatch() 285 if (rcb && pfd->revents & (POLLIN | FDPOLLERR)) in fdset_event_dispatch() 287 if (wcb && pfd->revents & (POLLOUT | FDPOLLERR)) in fdset_event_dispatch()
|
| /f-stack/freebsd/x86/acpica/ |
| H A D | acpi_apm.c | 393 int revents; in apmpoll() local 395 revents = 0; in apmpoll() 399 revents |= events & (POLLIN | POLLRDNORM); in apmpoll() 403 return (revents); in apmpoll()
|
| /f-stack/app/redis-5.0.5/src/ |
| H A D | ae.c | 494 if (pfd.revents & POLLIN) retmask |= AE_READABLE; in aeWait() 495 if (pfd.revents & POLLOUT) retmask |= AE_WRITABLE; in aeWait() 496 if (pfd.revents & POLLERR) retmask |= AE_WRITABLE; in aeWait() 497 if (pfd.revents & POLLHUP) retmask |= AE_WRITABLE; in aeWait()
|
| /f-stack/freebsd/netgraph/ |
| H A D | ng_device.c | 489 int revents = 0; in ngdpoll() local 493 revents |= events & (POLLIN | POLLRDNORM); in ngdpoll() 495 return (revents); in ngdpoll()
|
| /f-stack/freebsd/sys/ |
| H A D | poll.h | 50 short revents; /* events found on return */ member
|
| /f-stack/dpdk/lib/librte_cmdline/ |
| H A D | cmdline_os_unix.c | 38 pfd.revents = 0; in cmdline_poll_char()
|
| /f-stack/freebsd/net/ |
| H A D | netmap_legacy.h | 230 int revents; member
|
| /f-stack/freebsd/security/audit/ |
| H A D | audit_pipe.c | 986 int error, revents; in audit_pipe_poll() local 988 revents = 0; in audit_pipe_poll() 995 revents |= events & (POLLIN | POLLRDNORM); in audit_pipe_poll() 1000 return (revents); in audit_pipe_poll()
|