/Zephyr-latest/tests/posix/eventfd/ |
D | testcase.yaml | 5 - 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:
|
D | CMakeLists.txt | 5 project(eventfd) project
|
/Zephyr-latest/tests/posix/headers/src/ |
D | sys_eventfd_h.c | 10 #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/ |
D | eventfd.h | 10 #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/ |
D | README.rst | 1 .. 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.
|
D | sample.yaml | 2 description: Extended POSIX (Linux) API eventfd() example 3 name: eventfd 11 sample.posix.eventfd:
|
D | Makefile.host | 3 eventfd: src/main.c
|
D | CMakeLists.txt | 6 project(eventfd) project
|
D | prj.conf | 6 # eventfd() implementation currently depends on some networking APIs,
|
/Zephyr-latest/tests/posix/eventfd/src/ |
D | _main.c | 13 *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 …]
|
D | nonblocking.c | 9 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()
|
D | blocking.c | 9 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
|
D | ioctl.c | 14 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/ |
D | Kconfig.compat | 8 config EVENTFD config 9 bool "Support for eventfd" 14 Enable support for event file descriptors, eventfd. An eventfd can
|
D | eventfd.c | 7 #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/ |
D | eventfd.h | 29 * 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/ |
D | main.c | 7 * 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/ |
D | Kconfig | 21 Enable support for ZVFS event file descriptors. An eventfd can 28 int "Maximum number of ZVFS eventfd's"
|
/Zephyr-latest/tests/modules/thrift/ThriftTest/ |
D | prj.conf | 47 # eventfd for server cancellation, and there are no cancellation sockets 54 # eventfd for cancellation: 1
|
/Zephyr-latest/samples/net/sockets/echo_service/ |
D | sample.yaml | 8 # eventfd does not work properly with native_posix so exclude it here
|
/Zephyr-latest/tests/net/dhcpv4/server/ |
D | prj.conf | 18 # We need to set POSIX_API and use picolibc for eventfd to work
|
D | testcase.yaml | 4 # eventfd API does not work with native_posix so exclude it here
|
/Zephyr-latest/tests/net/socket/service/ |
D | prj.conf | 15 # We need to set POSIX_API and use picolibc for eventfd to work
|
D | testcase.yaml | 6 # eventfd API does not work with native_posix so exclude it here
|
/Zephyr-latest/tests/net/lib/http_server/crime/ |
D | prj.conf | 4 # Eventfd
|