/third_party/musl/libc-test/src/functionalext/supplement/linux/ |
H A D | eventfd.c | 16 #include <sys/eventfd.h> 21 * @tc.desc : The flags parameter is equal to EFD_SEMAPHORE, which creates an eventfd object. 26 int ret = eventfd(0, EFD_SEMAPHORE); in eventfd_0100() 32 * @tc.desc : The flags parameter is equal to EFD_CLOEXEC, which creates an eventfd object. 37 int ret = eventfd(0, EFD_CLOEXEC); in eventfd_0200() 43 * @tc.desc : The flags parameter is equal to EFD_NONBLOCK, which creates an eventfd object. 48 int ret = eventfd(0, EFD_NONBLOCK); in eventfd_0300()
|
H A D | eventfd_read.c | 17 #include <sys/eventfd.h> 28 int fd = eventfd(initial_value, O_NONBLOCK); in eventfd_read_0100() 30 t_error("%s eventfd failed\n", __func__); in eventfd_read_0100() 68 int fd = eventfd(initial_value, O_NONBLOCK); in eventfd_read_0300() 70 t_error("%s eventfd failed\n", __func__); in eventfd_read_0300()
|
H A D | eventfd_write.c | 17 #include <sys/eventfd.h> 29 int fd = eventfd(initial_value, O_NONBLOCK); in eventfd_write_0100() 31 t_error("%s eventfd failed\n", __func__); in eventfd_write_0100() 78 int fd = eventfd(initial_value, O_NONBLOCK); in eventfd_write_0300() 80 t_error("%s eventfd failed\n", __func__); in eventfd_write_0300()
|
/third_party/musl/libc-test/src/functionalext/supplement/linux/linux_gtest/ |
H A D | linux_eventfd_test.cpp | 4 #include <sys/eventfd.h> 17 * @tc.desc: This test verifies that the eventfd instance created by the eventfd function can correctly set the flag bit 19 * eventfd instance will automatically close when executing the exec series of functions. 24 int eventFd = eventfd(VALUE, EFD_CLOEXEC); in HWTEST_F() 34 * @tc.desc: The test case aims to verify the functionality and correctness of creating an eventfd instance 35 * with the EFD_NONBLOCK and EFD_CLOEXEC flags. It ensures that the eventfd instance can work properly and 41 int eventFd = eventfd(VALUE, EFD_NONBLOCK | EFD_CLOEXEC); in HWTEST_F() 51 * @tc.desc: The testing viewpoint of this test case is to create an eventfd object of semaphore type by calling the 52 * eventfd functio [all...] |
/third_party/libwebsockets/lib/event-libs/uloop/ |
H A D | uloop.c | 102 struct lws_pollfd eventfd; in lws_uloop_cb() local 104 eventfd.fd = wu->wsi->desc.sockfd; in lws_uloop_cb() 105 eventfd.events = 0; in lws_uloop_cb() 106 eventfd.revents = 0; in lws_uloop_cb() 109 eventfd.events = LWS_POLLIN; in lws_uloop_cb() 110 eventfd.revents = LWS_POLLIN; in lws_uloop_cb() 113 eventfd.events |= LWS_POLLOUT; in lws_uloop_cb() 114 eventfd.revents |= LWS_POLLOUT; in lws_uloop_cb() 121 lws_service_fd_tsi(context, &eventfd, wu->wsi->tsi); in lws_uloop_cb()
|
/third_party/libwebsockets/lib/event-libs/glib/ |
H A D | glib.c | 115 struct lws_pollfd eventfd; in lws_glib_dispatch() local 119 eventfd.revents = (short)cond; in lws_glib_dispatch() 124 eventfd.revents |= LWS_POLLIN; in lws_glib_dispatch() 126 eventfd.revents |= LWS_POLLOUT; in lws_glib_dispatch() 128 eventfd.revents |= LWS_POLLHUP; in lws_glib_dispatch() 130 eventfd.revents |= LWS_POLLHUP; in lws_glib_dispatch() 132 eventfd.events = eventfd.revents; in lws_glib_dispatch() 133 eventfd.fd = sub->wsi->desc.sockfd; in lws_glib_dispatch() 136 eventfd in lws_glib_dispatch() [all...] |
/third_party/libwebsockets/lib/event-libs/libuv/ |
H A D | libuv.c | 100 struct lws_pollfd eventfd; in lws_io_cb() local 115 eventfd.fd = watcher->socket; in lws_io_cb() 117 eventfd.fd = watcher->io_watcher.fd; in lws_io_cb() 119 eventfd.events = 0; in lws_io_cb() 120 eventfd.revents = 0; in lws_io_cb() 132 eventfd.events |= LWS_POLLHUP; in lws_io_cb() 133 eventfd.revents |= LWS_POLLHUP; in lws_io_cb() 136 eventfd.events |= LWS_POLLIN; in lws_io_cb() 137 eventfd.revents |= LWS_POLLIN; in lws_io_cb() 140 eventfd in lws_io_cb() [all...] |
/third_party/libwebsockets/lib/event-libs/libevent/ |
H A D | libevent.c | 109 struct lws_pollfd eventfd; in lws_event_cb() local 125 eventfd.fd = sock_fd; in lws_event_cb() 126 eventfd.events = 0; in lws_event_cb() 127 eventfd.revents = 0; in lws_event_cb() 129 eventfd.events |= LWS_POLLIN; in lws_event_cb() 130 eventfd.revents |= LWS_POLLIN; in lws_event_cb() 133 eventfd.events |= LWS_POLLOUT; in lws_event_cb() 134 eventfd.revents |= LWS_POLLOUT; in lws_event_cb() 145 lws_service_fd_tsi(context, &eventfd, wsi->tsi); in lws_event_cb()
|
/third_party/libwebsockets/lib/event-libs/libev/ |
H A D | libev.c | 95 struct lws_pollfd eventfd; in lws_accept_cb() local 101 eventfd.fd = watcher->fd; in lws_accept_cb() 102 eventfd.events = 0; in lws_accept_cb() 103 eventfd.revents = EV_NONE; in lws_accept_cb() 106 eventfd.events |= LWS_POLLIN; in lws_accept_cb() 107 eventfd.revents |= LWS_POLLIN; in lws_accept_cb() 110 eventfd.events |= LWS_POLLOUT; in lws_accept_cb() 111 eventfd.revents |= LWS_POLLOUT; in lws_accept_cb() 118 lws_service_fd_tsi(context, &eventfd, (int)wsi->tsi); in lws_accept_cb()
|
/third_party/libwebsockets/lib/event-libs/sdevent/ |
H A D | sdevent.c | 98 struct lws_pollfd eventfd; in sock_accept_handler() local 106 eventfd.fd = fd; in sock_accept_handler() 107 eventfd.events = 0; in sock_accept_handler() 108 eventfd.revents = 0; in sock_accept_handler() 111 eventfd.events |= LWS_POLLIN; in sock_accept_handler() 112 eventfd.revents |= LWS_POLLIN; in sock_accept_handler() 116 eventfd.events |= LWS_POLLOUT; in sock_accept_handler() 117 eventfd.revents |= LWS_POLLOUT; in sock_accept_handler() 123 lws_service_fd_tsi(context, &eventfd, wsi->tsi); in sock_accept_handler()
|
/third_party/rust/crates/rustix/src/io/ |
H A D | eventfd.rs | 6 /// `eventfd(initval, flags)`—Creates a file descriptor for event 12 /// [Linux]: https://man7.org/linux/man-pages/man2/eventfd.2.html 14 pub fn eventfd(initval: u32, flags: EventfdFlags) -> io::Result<OwnedFd> { in eventfd() functions 15 backend::io::syscalls::eventfd(initval, flags) in eventfd()
|
H A D | mod.rs | 10 mod eventfd; modules 37 pub use eventfd::{eventfd, EventfdFlags};
|
/third_party/ltp/testcases/kernel/syscalls/eventfd/ |
H A D | eventfd05.c | 12 * Test whether eventfd() counter update in child is reflected in the parent. 16 #include <sys/eventfd.h> 25 fd = TST_EXP_FD(eventfd(0, EFD_NONBLOCK)); in run()
|
H A D | eventfd02.c | 12 * Verify write operation for eventfd fail with: 20 #include <sys/eventfd.h> 30 fd = TST_EXP_FD(eventfd(0, EFD_NONBLOCK)); in run()
|
H A D | eventfd01.c | 12 * Verify read operation for eventfd fail with: 19 #include <sys/eventfd.h> 30 fd = TST_EXP_FD(eventfd(EVENT_COUNT, EFD_NONBLOCK)); in run()
|
H A D | eventfd04.c | 12 * Test whether writefd is set by select() when eventfd() counter value is 13 * not the maximum value, then check if writefd is not set when eventfd() 18 #include <sys/eventfd.h> 30 fd = TST_EXP_FD(eventfd(0, EFD_NONBLOCK)); in run()
|
H A D | eventfd03.c | 12 * Test whether readfd is set by select() when eventfd() counter value is 13 * non-zero, then check if readfd is not set when eventfd() counter value is 18 #include <sys/eventfd.h> 29 fd = TST_EXP_FD(eventfd(0, EFD_NONBLOCK)); in run()
|
H A D | eventfd06.c | 19 * The AIO subsystem internally uses eventfd mechanism for 23 * through the eventfd counter, the counter overflows. 32 * - POLLERR event occurs in poll() for the eventfd 33 * - readfd_set/writefd_set is set in select() for the eventfd 45 #include <sys/eventfd.h> 143 evfd = TST_EXP_FD(eventfd(0, EFD_NONBLOCK)); in setup() 170 TST_TEST_TCONF("eventfd support is not available in AIO subsystem");
|
/third_party/rust/crates/nix/src/sys/ |
H A D | eventfd.rs | 13 pub fn eventfd(initval: libc::c_uint, flags: EfdFlags) -> Result<RawFd> { in eventfd() functions 14 let res = unsafe { libc::eventfd(initval, flags.bits()) }; in eventfd()
|
/third_party/musl/src/linux/ |
H A D | eventfd.c | 1 #include <sys/eventfd.h> 9 int eventfd(unsigned int count, int flags) in eventfd() function
|
/third_party/rust/crates/rustix/tests/io/ |
H A D | eventfd.rs | 4 use rustix::io::{eventfd, read, write, EventfdFlags}; in test_eventfd() 8 let efd = eventfd(0, EventfdFlags::CLOEXEC).unwrap(); in test_eventfd()
|
/third_party/pulseaudio/src/pulsecore/ |
H A D | fdsem.c | 43 #include <sys/eventfd.h> 63 if ((f->efd = eventfd(0, EFD_CLOEXEC)) >= 0) in pa_fdsem_new() 110 if ((f->efd = eventfd(0, EFD_CLOEXEC)) < 0) { in pa_fdsem_new_shm() 154 pa_log_error("Invalid read from eventfd: %s", r < 0 ? pa_cstrerror(errno) : "EOF"); in flush() 187 pa_log_error("Invalid write to eventfd: %s", r < 0 ? pa_cstrerror(errno) : "EOF"); in pa_fdsem_post() 223 pa_log_error("Invalid read from eventfd: %s", r < 0 ? pa_cstrerror(errno) : "EOF"); in pa_fdsem_wait()
|
/third_party/mesa3d/src/gallium/drivers/d3d12/ |
H A D | d3d12_fence.cpp | 58 #include <sys/eventfd.h> 72 *fd = eventfd(0, 0); in create_event()
|
/third_party/musl/Benchmark/musl/ |
H A D | libc_syscall.cpp | 31 #include <sys/eventfd.h> 170 int fd = eventfd(0, 0); in Bm_function_Syscall_eventfd()
|
/third_party/node/deps/uv/src/unix/ |
H A D | async.c | 38 #include <sys/eventfd.h> 183 fd = loop->async_io_watcher.fd; /* eventfd */ in uv__async_send() 210 err = eventfd(0, EFD_CLOEXEC | EFD_NONBLOCK); in uv__async_start()
|