2023-07-04 03:15:35 +08:00
|
|
|
# Copyright (c) 2020 Tobias Svehagen
|
|
|
|
# Copyright (c) 2023 Meta
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
|
|
|
config EVENTFD
|
|
|
|
bool "Support for eventfd"
|
|
|
|
depends on !NATIVE_APPLICATION
|
|
|
|
select POLL
|
2023-09-25 20:30:16 +08:00
|
|
|
select FDTABLE
|
2023-07-04 03:15:35 +08:00
|
|
|
default y if POSIX_API
|
|
|
|
help
|
|
|
|
Enable support for event file descriptors, eventfd. An eventfd can
|
|
|
|
be used as an event wait/notify mechanism together with POSIX calls
|
|
|
|
like read, write and poll.
|
|
|
|
|
|
|
|
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.
|