Home
last modified time | relevance | path

Searched refs:revents (Results 1 – 25 of 144) sorted by relevance

123456

/openbmc/qemu/io/
H A Dchannel-watch.c40 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()
201 ssource->fdwrite.revents; in qio_channel_fd_pair_source_check()
215 ssource->fdwrite.revents; in qio_channel_fd_pair_source_dispatch()
[all …]
/openbmc/qemu/util/
H A Daio-win32.c53 node->pfd.revents = 0; in aio_remove_fd_handler()
207 node->pfd.revents = 0; in aio_prepare()
209 node->pfd.revents |= G_IO_IN; in aio_prepare()
214 node->pfd.revents |= G_IO_OUT; in aio_prepare()
235 if (node->pfd.revents && node->io_notify) { in aio_pending()
240 if ((node->pfd.revents & G_IO_IN) && node->io_read) { in aio_pending()
265 int revents = node->pfd.revents; in aio_dispatch_handlers() local
270 node->pfd.revents = 0; in aio_dispatch_handlers()
281 node->pfd.revents = 0; in aio_dispatch_handlers()
282 if ((revents & G_IO_IN) && node->io_read) { in aio_dispatch_handlers()
[all …]
H A Daio-posix.c37 int revents) in aio_add_ready_handler() argument
40 node->pfd.revents = revents; in aio_add_ready_handler()
78 node->pfd.revents = 0; in aio_remove_fd_handler()
281 int revents; in aio_pending() local
284 revents = node->pfd.revents & node->pfd.events; in aio_pending()
324 int revents; in aio_dispatch_handler() local
326 revents = node->pfd.revents & node->pfd.events; in aio_dispatch_handler()
327 node->pfd.revents = 0; in aio_dispatch_handler()
341 trace_poll_add(ctx, node, node->pfd.fd, revents); in aio_dispatch_handler()
370 (revents & (G_IO_IN | G_IO_HUP | G_IO_ERR)) && in aio_dispatch_handler()
[all …]
H A Dmain-loop.c356 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 Dfdmon-poll.c84 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 Dfdarray.c7 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 Dio.cpp60 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 Dio.hpp28 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 Darray.c76 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 Darray.h45 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 Deventpoll.h74 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 Dipmi_tsol.c510 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/mediactl/
H A Drequest-func-poll.rst44 ``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/linux/Documentation/userspace-api/media/v4l/
H A Dfunc-poll.rst46 ``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/libmctp/utils/
H A Dmctp-pipe.c75 if (pollfds[0].revents) { in main()
81 if (pollfds[1].revents) { in main()
87 if (n > 2 && pollfds[2].revents) { in main()
/openbmc/phosphor-buttons/inc/
H A Dbutton_interface.hpp50 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/linux/Documentation/translations/zh_CN/accounting/
H A Dpsi.rst133 if (fds.revents & POLLERR) {
137 if (fds.revents & POLLPRI) {
140 printf("unknown event received: 0x%x\n", fds.revents);
/openbmc/linux/tools/testing/selftests/pidfd/
H A Dpidfd_poll_test.c97 if (!(fds.revents & POLLIN)) in main()
100 fds.revents); in main()
/openbmc/qemu/chardev/
H A Dchar-pty.c95 pfd.revents = 0; in pty_chr_update_read_handler()
99 if (pfd.revents & G_IO_HUP) { in pty_chr_update_read_handler()
122 pfd.revents = 0; in char_pty_chr_write()
125 if (!(pfd.revents & G_IO_HUP) && (pfd.revents & G_IO_OUT)) { in char_pty_chr_write()
/openbmc/sdeventplus/test/source/
H A Dio.cpp88 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/tools/testing/selftests/kvm/lib/
H A Duserfaultfd_util.c64 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/samples/uhid/
H A Duhid-example.c441 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/Documentation/userspace-api/media/cec/
H A Dcec-func-poll.rst44 ``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/audio/
H A Dsndioaudio.c166 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/nitro_enclaves/
H A Dne_ioctl_sample.c228 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()

123456