Home
last modified time | relevance | path

Searched refs:eventfd (Results 1 - 25 of 53) sorted by relevance

123

/third_party/musl/libc-test/src/functionalext/supplement/linux/
H A Deventfd.c16 #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 Deventfd_read.c17 #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 Deventfd_write.c17 #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 Dlinux_eventfd_test.cpp4 #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 Duloop.c102 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 Dglib.c115 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 Dlibuv.c100 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 Dlibevent.c109 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 Dlibev.c95 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 Dsdevent.c98 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 Deventfd.rs6 /// `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 Dmod.rs10 mod eventfd; modules
37 pub use eventfd::{eventfd, EventfdFlags};
/third_party/ltp/testcases/kernel/syscalls/eventfd/
H A Deventfd05.c12 * 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 Deventfd02.c12 * 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 Deventfd01.c12 * 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 Deventfd04.c12 * 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 Deventfd03.c12 * 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 Deventfd06.c19 * 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 Deventfd.rs13 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 Deventfd.c1 #include <sys/eventfd.h>
9 int eventfd(unsigned int count, int flags) in eventfd() function
/third_party/rust/crates/rustix/tests/io/
H A Deventfd.rs4 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 Dfdsem.c43 #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 Dd3d12_fence.cpp58 #include <sys/eventfd.h>
72 *fd = eventfd(0, 0); in create_event()
/third_party/musl/Benchmark/musl/
H A Dlibc_syscall.cpp31 #include <sys/eventfd.h>
170 int fd = eventfd(0, 0); in Bm_function_Syscall_eventfd()
/third_party/node/deps/uv/src/unix/
H A Dasync.c38 #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()

Completed in 9 milliseconds

123