/openbmc/qemu/io/ |
H A D | channel-watch.c | 40 int revents; member 72 return ssource->fd.revents & ssource->condition; in qio_channel_fd_source_check() 85 ssource->fd.revents & ssource->condition, in qio_channel_fd_source_dispatch() 137 ssource->revents = 0; in qio_channel_socket_source_check() 143 ssource->revents |= G_IO_IN; in qio_channel_socket_source_check() 146 ssource->revents |= G_IO_OUT; in qio_channel_socket_source_check() 149 ssource->revents |= G_IO_PRI; in qio_channel_socket_source_check() 152 return ssource->revents; in qio_channel_socket_source_check() 164 return (*func)(ssource->ioc, ssource->revents, user_data); in qio_channel_socket_source_dispatch() 200 GIOCondition poll_condition = ssource->fdread.revents | in qio_channel_fd_pair_source_check() [all …]
|
/openbmc/qemu/util/ |
H A D | aio-win32.c | 54 node->pfd.revents = 0; in aio_remove_fd_handler() 208 node->pfd.revents = 0; in aio_prepare() 210 node->pfd.revents |= G_IO_IN; in aio_prepare() 215 node->pfd.revents |= G_IO_OUT; in aio_prepare() 236 if (node->pfd.revents && node->io_notify) { in aio_pending() 241 if ((node->pfd.revents & G_IO_IN) && node->io_read) { in aio_pending() 245 if ((node->pfd.revents & G_IO_OUT) && node->io_write) { in aio_pending() 266 int revents = node->pfd.revents; in aio_dispatch_handlers() local 269 (revents || event_notifier_get_handle(node->e) == event) && in aio_dispatch_handlers() 271 node->pfd.revents = 0; in aio_dispatch_handlers() [all …]
|
H A D | aio-posix.c | 38 int revents) in aio_add_ready_handler() argument 41 node->pfd.revents = revents; in aio_add_ready_handler() 79 node->pfd.revents = 0; in aio_remove_fd_handler() 282 int revents; in aio_pending() local 285 revents = node->pfd.revents & node->pfd.events; in aio_pending() 286 if (revents & (G_IO_IN | G_IO_HUP | G_IO_ERR) && node->io_read) { in aio_pending() 290 if (revents & (G_IO_OUT | G_IO_ERR) && node->io_write) { in aio_pending() 325 int revents; in aio_dispatch_handler() local 327 revents = node->pfd.revents & node->pfd.events; in aio_dispatch_handler() 328 node->pfd.revents = 0; in aio_dispatch_handler() [all …]
|
H A D | main-loop.c | 356 int revents[MAXIMUM_WAIT_OBJECTS]; 383 w->revents[w->num] = 0; 402 w->revents[i] = w->revents[i + 1]; 444 int revents = 0; 447 revents |= G_IO_IN; 450 revents |= G_IO_OUT; 453 revents |= G_IO_PRI; 455 pfd->revents = revents & pfd->events; 528 w->revents[i] = poll_fds[n_poll_fds + i].revents; 531 if (w->revents[i] && w->func[i]) {
|
H A D | fdmon-poll.c | 84 int revents = pollfds[i].revents; in fdmon_poll_wait() local 86 if (revents) { in fdmon_poll_wait() 87 aio_add_ready_handler(ready_list, nodes[i], revents); in fdmon_poll_wait()
|
/openbmc/linux/tools/perf/tests/ |
H A D | fdarray.c | 7 static void fdarray__init_revents(struct fdarray *fda, short revents) in fdarray__init_revents() argument 15 fda->entries[fd].events = revents; in fdarray__init_revents() 16 fda->entries[fd].revents = revents; in fdarray__init_revents() 58 fda->entries[2].revents = POLLIN; in test__fdarray__filter() 70 fda->entries[0].revents = POLLIN; in test__fdarray__filter() 71 fda->entries[3].revents = POLLIN; in test__fdarray__filter()
|
/openbmc/sdeventplus/src/sdeventplus/source/ |
H A D | io.cpp | 60 uint32_t revents; in get_revents() local 63 event.getSdEvent()->sd_event_source_get_io_revents(get(), &revents)); in get_revents() 64 return revents; in get_revents() 86 int IO::ioCallback(sd_event_source* source, int fd, uint32_t revents, in ioCallback() argument 90 "ioCallback", source, userdata, fd, revents); in ioCallback()
|
H A D | io.hpp | 28 using Callback = fu2::unique_function<void(IO&, int fd, uint32_t revents)>; 128 static int ioCallback(sd_event_source* source, int fd, uint32_t revents,
|
/openbmc/linux/tools/lib/api/fd/ |
H A D | array.c | 76 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags) in fdarray__add() argument 85 fda->entries[fda->nr].events = revents; in fdarray__add() 108 int fdarray__filter(struct fdarray *fda, short revents, in fdarray__filter() argument 121 if (fda->entries[fd].revents & revents) { in fdarray__filter() 125 fda->entries[fd].revents = fda->entries[fd].events = 0; in fdarray__filter()
|
H A D | array.h | 45 int fdarray__add(struct fdarray *fda, int fd, short revents, enum fdarray_flags flags); 48 int fdarray__filter(struct fdarray *fda, short revents,
|
/openbmc/linux/include/linux/ |
H A D | eventpoll.h | 74 epoll_put_uevent(__poll_t revents, __u64 data, 78 epoll_put_uevent(__poll_t revents, __u64 data, in epoll_put_uevent() argument 81 if (__put_user(revents, &uevent->events) || in epoll_put_uevent()
|
/openbmc/ipmitool/lib/ |
H A D | ipmi_tsol.c | 510 fds_wait[0].revents = 0; in ipmi_tsol_main() 513 fds_wait[1].revents = 0; in ipmi_tsol_main() 516 fds_wait[2].revents = 0; in ipmi_tsol_main() 520 fds_data_wait[0].revents = 0; in ipmi_tsol_main() 523 fds_data_wait[1].revents = 0; in ipmi_tsol_main() 526 fds_data_wait[2].revents = 0; in ipmi_tsol_main() 540 if ((fds[0].revents & POLLIN) && (sizeof(out_buff) > out_buff_fill)) { in ipmi_tsol_main() 561 if ((fds[1].revents & POLLIN) && (sizeof(in_buff) > in_buff_fill)) { in ipmi_tsol_main() 580 if ((fds[2].revents & POLLOUT) && out_buff_fill) { in ipmi_tsol_main() 590 if ((fds[0].revents & POLLOUT) && in_buff_fill) { in ipmi_tsol_main()
|
/openbmc/linux/Documentation/userspace-api/media/v4l/ |
H A D | func-poll.rst | 46 ``revents`` field of the respective ``struct pollfd`` structure 48 flags in the ``revents`` field, output devices the ``POLLOUT`` and 53 function succeeds, but sets the ``POLLERR`` flag in the ``revents`` 58 the ``revents`` field. For output devices this same situation will cause 60 ``POLLWRNORM`` flags in the ``revents`` field. 63 then ``POLLPRI`` will be set in the ``revents`` field and 94 non-zero ``revents`` fields, or zero if the call timed out. On error -1
|
/openbmc/linux/Documentation/userspace-api/media/mediactl/ |
H A D | request-func-poll.rst | 44 ``revents`` field of the respective struct :c:type:`pollfd` 45 is non-zero). Request file descriptor set the ``POLLPRI`` flag in ``revents`` 51 set the ``POLLERR`` flag in ``revents``. 57 structures which have non-zero ``revents`` fields, or zero if the call
|
/openbmc/phosphor-buttons/inc/ |
H A D | button_interface.hpp | 50 virtual void handleEvent(sd_event_source* es, int fd, uint32_t revents) = 0; 51 static int EventHandler(sd_event_source* es, int fd, uint32_t revents, in EventHandler() argument 57 buttonIface->handleEvent(es, fd, revents); in EventHandler()
|
/openbmc/libmctp/utils/ |
H A D | mctp-pipe.c | 75 if (pollfds[0].revents) { in main() 81 if (pollfds[1].revents) { in main() 87 if (n > 2 && pollfds[2].revents) { in main()
|
/openbmc/sdeventplus/test/source/ |
H A D | io.cpp | 88 IO::Callback callback = [&](IO&, int fd, uint32_t revents) { in TEST_F() argument 90 return_revents = revents; in TEST_F() 267 const uint32_t revents = EPOLLOUT; in TEST_F() local 270 .WillOnce(DoAll(SetArgPointee<1>(revents), Return(0))); in TEST_F() 271 EXPECT_EQ(revents, io->get_revents()); in TEST_F()
|
/openbmc/linux/Documentation/translations/zh_CN/accounting/ |
H A D | psi.rst | 133 if (fds.revents & POLLERR) { 137 if (fds.revents & POLLPRI) { 140 printf("unknown event received: 0x%x\n", fds.revents);
|
/openbmc/qemu/audio/ |
H A D | sndioaudio.c | 166 pfd->revents = 0; in sndio_poll_wait() 176 int revents; in sndio_poll_event() local 187 self->pfds[index].revents = event; in sndio_poll_event() 193 revents = sio_revents(self->hdl, self->pfds); in sndio_poll_event() 195 if (revents & POLLOUT) { in sndio_poll_event() 203 if (revents & POLLIN) { in sndio_poll_event()
|
/openbmc/linux/samples/uhid/ |
H A D | uhid-example.c | 441 if (pfds[0].revents & POLLHUP) { in main() 445 if (pfds[1].revents & POLLHUP) { in main() 450 if (pfds[0].revents & POLLIN) { in main() 455 if (pfds[1].revents & POLLIN) { in main()
|
/openbmc/linux/tools/testing/selftests/kvm/lib/ |
H A D | userfaultfd_util.c | 64 if (pollfd[0].revents & POLLERR) { in uffd_handler_thread_fn() 69 if (pollfd[1].revents & POLLIN) { in uffd_handler_thread_fn() 76 if (!(pollfd[0].revents & POLLIN)) in uffd_handler_thread_fn()
|
/openbmc/linux/tools/testing/selftests/pidfd/ |
H A D | pidfd_poll_test.c | 97 if (!(fds.revents & POLLIN)) in main() 100 fds.revents); in main()
|
/openbmc/linux/Documentation/userspace-api/media/cec/ |
H A D | cec-func-poll.rst | 44 ``revents`` field of the respective struct :c:type:`pollfd` 46 the ``revents`` field if there are messages in the receive queue. If the 59 non-zero ``revents`` fields, or zero if the call timed out. On error -1
|
/openbmc/qemu/chardev/ |
H A D | char-pty.c | 97 pfd.revents = 0; in pty_chr_update_read_handler() 101 if (pfd.revents & G_IO_HUP) { in pty_chr_update_read_handler() 124 pfd.revents = 0; in char_pty_chr_write() 127 if (!(pfd.revents & G_IO_HUP) && (pfd.revents & G_IO_OUT)) { in char_pty_chr_write()
|
/openbmc/linux/samples/nitro_enclaves/ |
H A D | ne_ioctl_sample.c | 228 printf("Poll received value 0x%x\n", fds[0].revents); in ne_poll_enclave_fd() 230 if (fds[0].revents & POLLHUP) { in ne_poll_enclave_fd() 236 if (fds[0].revents & POLLNVAL) { in ne_poll_enclave_fd() 714 if ((fds[0].revents & POLLIN) == 0) { in ne_start_enclave_check_booted() 715 printf("Poll received value %d\n", fds[0].revents); in ne_start_enclave_check_booted()
|