zephyr/lib/os
Chris Friedt 487a8756c3 posix: eventfd: fix dependency cycle between net and posix
Until recently, the posix api was purely a consumer of the
network subsystem. However, a dependency cycle was added as
a stop-gap solution for challenges with the native platform.

Specifically,

1. eventfd symbols conflict with those of the host
2. eventfd was excluded from native libc builds via cmake

If any part of the posix were then to select the network
subsystem (which is a legitimate use case, given that networking
is a part of the posix api), we would get a build error due to
the Kconfig dependency cycle.

As usual, with dependency cycles, the cycle can be broken
via a third, mutual dependency.

What is the third mutual dependency? Naturally, it is ZVFS
which was planned some time ago. ZVFS will be where we
collect file-descriptor and FILE-pointer APIs so that we can
ensure consistency for Zephyr users.

This change deprecates EVENTFD_MAX in favour of
ZVFS_EVENTFD_MAX.

Signed-off-by: Chris Friedt <cfriedt@tenstorrent.com>
2024-06-04 16:27:12 -05:00
..
zvfs posix: eventfd: fix dependency cycle between net and posix 2024-06-04 16:27:12 -05:00
CMakeLists.txt posix: eventfd: fix dependency cycle between net and posix 2024-06-04 16:27:12 -05:00
Kconfig posix: eventfd: fix dependency cycle between net and posix 2024-06-04 16:27:12 -05:00
Kconfig.cbprintf
assert.c
cbprintf.c
cbprintf_complete.c
cbprintf_nano.c
cbprintf_packaged.c
fdtable.c posix: deprecate POSIX_FS for POSIX_FILE_SYSTEM 2024-06-04 16:27:12 -05:00
mpsc_pbuf.c
mutex.c build: namespace the generated headers with `zephyr/` 2024-05-28 22:03:55 +02:00
p4wq.c
poweroff.c
printk.c build: namespace the generated headers with `zephyr/` 2024-05-28 22:03:55 +02:00
reboot.c
sem.c
spsc_pbuf.c
thread_entry.c
user_work.c