From 2642eaa4e9a879b32a67ae4a627971a7316bb73e Mon Sep 17 00:00:00 2001 From: Chris Friedt Date: Thu, 23 May 2024 12:19:58 -0400 Subject: [PATCH] posix: relocate Kconfig.eventfd to Kconfig.compat While event file descriptors (eventfd) are extremely useful, the API has still not been formalized as part of the POSIX specification. Therefore, move this to a separate Kconfig menu for "compat" (compatibility) features. Signed-off-by: Chris Friedt --- lib/posix/options/Kconfig | 2 ++ lib/posix/options/{Kconfig.eventfd => Kconfig.compat} | 9 ++++++++- 2 files changed, 10 insertions(+), 1 deletion(-) rename lib/posix/options/{Kconfig.eventfd => Kconfig.compat} (87%) diff --git a/lib/posix/options/Kconfig b/lib/posix/options/Kconfig index 0157c8d884c..ee5161da899 100644 --- a/lib/posix/options/Kconfig +++ b/lib/posix/options/Kconfig @@ -35,6 +35,8 @@ rsource "Kconfig.sync_io" rsource "Kconfig.timer" rsource "Kconfig.xsi" +rsource "Kconfig.compat" + rsource "Kconfig.deprecated" endmenu # "POSIX Options" diff --git a/lib/posix/options/Kconfig.eventfd b/lib/posix/options/Kconfig.compat similarity index 87% rename from lib/posix/options/Kconfig.eventfd rename to lib/posix/options/Kconfig.compat index eadf8f80916..680f12f1c1a 100644 --- a/lib/posix/options/Kconfig.eventfd +++ b/lib/posix/options/Kconfig.compat @@ -3,6 +3,8 @@ # # SPDX-License-Identifier: Apache-2.0 +menu "Miscellaneous POSIX-related options" + menuconfig EVENTFD bool "Support for eventfd" depends on !NATIVE_APPLICATION @@ -14,10 +16,15 @@ menuconfig EVENTFD be used as an event wait/notify mechanism together with POSIX calls like read, write and poll. +if EVENTFD + config EVENTFD_MAX int "Maximum number of eventfd's" - depends on EVENTFD default 1 range 1 4096 help The maximum number of supported event file descriptors. + +endif # EVENTFD + +endmenu