zephyr/lib
Tobias Svehagen ca872a44c1 lib: posix: Add support for eventfd
This implements a file descriptor used for event notification that
behaves like the eventfd in Linux.

The eventfd supports nonblocking operation by setting the EFD_NONBLOCK
flag and semaphore operation by settings the EFD_SEMAPHORE flag.

The major use case for this is when using poll() and the sockets that
you poll are dynamic. When a new socket needs to be added to the poll,
there must be some way to wake the thread and update the pollfds before
calling poll again. One way to solve it is to have a timeout set in the
poll call and only update the pollfds during a timeout but that is not
a very nice solution. By instead including an eventfd in the pollfds,
it is possible to wake the polling thread by simply writing to the
eventfd.

Signed-off-by: Tobias Svehagen <tobias.svehagen@gmail.com>
2020-04-28 09:57:41 +03:00
..
cmsis_rtos_v1 kernel/timeout: Make timeout arguments an opaque type 2020-03-31 19:40:47 -04:00
cmsis_rtos_v2 kernel/timeout: Make timeout arguments an opaque type 2020-03-31 19:40:47 -04:00
fnmatch
gui
libc
open-amp lib: open-amp: add helper to add resource table in project 2020-04-01 09:21:15 -05:00
os sys: onoff: redesign to meet changed needs 2020-04-22 16:52:47 +02:00
posix lib: posix: Add support for eventfd 2020-04-28 09:57:41 +03:00
updatehub lib: updatehub: Improve probe security 2020-04-17 10:09:56 +03:00
CMakeLists.txt lib: open-amp: add helper to add resource table in project 2020-04-01 09:21:15 -05:00
Kconfig lib: open-amp: add helper to add resource table in project 2020-04-01 09:21:15 -05:00