Home
last modified time | relevance | path

Searched full:eventfd (Results 1 – 25 of 55) sorted by relevance

123

/Zephyr-latest/tests/posix/eventfd/
Dtestcase.yaml5 - eventfd
11 portability.posix.eventfd: {}
12 portability.posix.eventfd.minimal:
15 portability.posix.eventfd.newlib:
22 portability.posix.eventfd.armclang_std_libc:
26 portability.posix.eventfd.arcmwdtlib:
30 portability.posix.eventfd.picolibc:
DCMakeLists.txt5 project(eventfd) project
/Zephyr-latest/tests/posix/headers/src/
Dsys_eventfd_h.c10 #include <sys/eventfd.h>
12 #include <zephyr/posix/sys/eventfd.h>
16 * @brief existence test for `<sys/eventfd.h>`
18 * @note the eventfd API is not (yet) a part of POSIX.
20 * @see <a href="https://man7.org/linux/man-pages/man2/eventfd.2.html">sys/eventfd.h</a>
31 zassert_not_null(eventfd); in ZTEST()
/Zephyr-latest/include/zephyr/posix/sys/
Deventfd.h10 #include <zephyr/zvfs/eventfd.h>
27 * It also supports polling and by including an eventfd in a call to poll,
29 * the eventfd.
31 * When using read() and write() on an eventfd, the size must always be at
34 * @return New eventfd file descriptor on success, -1 on error
36 int eventfd(unsigned int initval, int flags);
39 * @brief Read from an eventfd
51 * @brief Write to an eventfd
/Zephyr-latest/samples/posix/eventfd/
DREADME.rst1 .. zephyr:code-sample:: posix-eventfd
2 :name: eventfd()
4 Use ``eventfd()`` to create a file descriptor for event notification.
9 This sample application demonstrates using the POSIX eventfd() function to create a file descriptor,
19 :zephyr-app: samples/posix/eventfd
29 cd samples/posix/eventfd
32 The make output file will be located in samples/posix/eventfd/build.
Dsample.yaml2 description: Extended POSIX (Linux) API eventfd() example
3 name: eventfd
11 sample.posix.eventfd:
DMakefile.host3 eventfd: src/main.c
DCMakeLists.txt6 project(eventfd) project
Dprj.conf6 # eventfd() implementation currently depends on some networking APIs,
/Zephyr-latest/tests/posix/eventfd/src/
D_main.c13 *fd = eventfd(initval, flags); in reopen()
14 zassert_true(*fd >= 0, "eventfd(%d, %d) failed: %d", initval, flags, errno); in reopen()
41 zassert_equal(ret, 1, "eventfd not blocked with initval == 0"); in eventfd_poll_unset_common()
48 zassert_equal(ret, 0, "eventfd blocked after write"); in eventfd_poll_unset_common()
58 /* eventfd shall block on subsequent reads */ in eventfd_poll_unset_common()
62 zassert_equal(ret, 1, "eventfd not blocked after read"); in eventfd_poll_unset_common()
73 zassert_equal(ret, 0, "eventfd is blocked with initval != 0"); in eventfd_poll_set_common()
81 zassert_equal(ret, 1, "eventfd is not blocked after read"); in eventfd_poll_set_common()
96 fixture->fd = eventfd(0, 0); in before()
97 zassert_true(fixture->fd >= 0, "eventfd(0, 0) failed: %d", errno); in before()
[all …]
Dnonblocking.c9 ZTEST_F(eventfd, test_read_nonblock) in ZTEST_F() argument
32 ZTEST_F(eventfd, test_set_poll_event_nonblock) in ZTEST_F() argument
38 ZTEST_F(eventfd, test_unset_poll_event_nonblock) in ZTEST_F() argument
44 ZTEST_F(eventfd, test_overflow) in ZTEST_F() argument
53 zassert_equal(ret, 0, "eventfd write blocked with initval == 0"); in ZTEST_F()
64 zassert_equal(ret, 1, "eventfd write not blocked with cnt == UINT64_MAX-1"); in ZTEST_F()
Dblocking.c9 ZTEST_F(eventfd, test_write_then_read) in ZTEST_F() argument
38 ZTEST_F(eventfd, test_zero_shall_not_unblock) in ZTEST_F() argument
48 zassert_equal(ret, 1, "eventfd unblocked by zero"); in ZTEST_F()
51 ZTEST_F(eventfd, test_poll_timeout) in ZTEST_F() argument
63 ZTEST_F(eventfd, test_set_poll_event_block) in ZTEST_F() argument
69 ZTEST_F(eventfd, test_unset_poll_event_block) in ZTEST_F() argument
86 ZTEST_F(eventfd, test_read_then_write_block) in ZTEST_F() argument
107 ZTEST_F(eventfd, test_write_while_pollin) in ZTEST_F() argument
142 ZTEST_F(eventfd, test_read_while_pollout) in ZTEST_F() argument
Dioctl.c14 ZTEST_F(eventfd, test_set_flags) in ZTEST_F() argument
27 zassert_equal(ret, 1, "eventfd read not blocked"); in ZTEST_F()
47 zassert_equal(ret, 0, "eventfd write blocked"); in ZTEST_F()
68 zassert_equal(ret, 1, "eventfd read not blocked"); in ZTEST_F()
/Zephyr-latest/lib/posix/options/
DKconfig.compat8 config EVENTFD config
9 bool "Support for eventfd"
14 Enable support for event file descriptors, eventfd. An eventfd can
Deventfd.c7 #include <zephyr/posix/sys/eventfd.h>
8 #include <zephyr/zvfs/eventfd.h>
10 int eventfd(unsigned int initval, int flags) in eventfd() function
/Zephyr-latest/include/zephyr/zvfs/
Deventfd.h29 * It also supports polling and by including an eventfd in a call to poll,
31 * the eventfd.
33 * When using read() and write() on a ZVFS eventfd, the size must always be at
36 * @return New ZVFS eventfd file descriptor on success, -1 on error
41 * @brief Read from a ZVFS eventfd
53 * @brief Write to a ZVFS eventfd
/Zephyr-latest/samples/posix/eventfd/src/
Dmain.c7 * manpage for eventfd().
9 #include <sys/eventfd.h>
71 efd = eventfd(0, 0); in main()
73 fatal("eventfd"); in main()
/Zephyr-latest/lib/os/zvfs/
DKconfig21 Enable support for ZVFS event file descriptors. An eventfd can
28 int "Maximum number of ZVFS eventfd's"
/Zephyr-latest/tests/modules/thrift/ThriftTest/
Dprj.conf47 # eventfd for server cancellation, and there are no cancellation sockets
54 # eventfd for cancellation: 1
/Zephyr-latest/samples/net/sockets/echo_service/
Dsample.yaml8 # eventfd does not work properly with native_posix so exclude it here
/Zephyr-latest/tests/net/dhcpv4/server/
Dprj.conf18 # We need to set POSIX_API and use picolibc for eventfd to work
Dtestcase.yaml4 # eventfd API does not work with native_posix so exclude it here
/Zephyr-latest/tests/net/socket/service/
Dprj.conf15 # We need to set POSIX_API and use picolibc for eventfd to work
Dtestcase.yaml6 # eventfd API does not work with native_posix so exclude it here
/Zephyr-latest/tests/net/lib/http_server/crime/
Dprj.conf4 # Eventfd

123