2023-07-03 15:15:35 -04:00
|
|
|
# Copyright (c) 2018 Intel Corporation
|
|
|
|
#
|
|
|
|
# SPDX-License-Identifier: Apache-2.0
|
|
|
|
|
2024-05-22 20:53:04 -04:00
|
|
|
menuconfig POSIX_SEMAPHORES
|
|
|
|
bool "POSIX semaphore support"
|
|
|
|
default y if POSIX_API
|
|
|
|
help
|
|
|
|
Enable this option for POSIX semaphore support.
|
|
|
|
|
|
|
|
if POSIX_SEMAPHORES
|
2024-01-30 23:05:44 -05:00
|
|
|
|
2024-05-22 20:53:04 -04:00
|
|
|
config POSIX_SEM_VALUE_MAX
|
|
|
|
int "Maximum semaphore value"
|
2023-07-03 15:15:35 -04:00
|
|
|
default 32767
|
|
|
|
range 1 32767
|
|
|
|
help
|
|
|
|
Maximum semaphore count in POSIX compliant Application.
|
2023-12-26 18:15:58 +08:00
|
|
|
|
2024-05-22 20:53:04 -04:00
|
|
|
config POSIX_SEM_NSEMS_MAX
|
|
|
|
int "Maximum number of semaphores"
|
|
|
|
default 256
|
|
|
|
help
|
|
|
|
Maximum number of semaphores in a POSIX application.
|
|
|
|
|
|
|
|
Note: currently, in Zephyr, this only limits the number of named semaphores (i.e. those
|
|
|
|
created via sem_open()).
|
|
|
|
|
|
|
|
config POSIX_SEM_NAMELEN_MAX
|
|
|
|
int "Maximum semaphore name length"
|
2023-12-26 18:15:58 +08:00
|
|
|
default 16
|
|
|
|
range 2 255
|
|
|
|
help
|
|
|
|
Maximum length of name for a named semaphore.
|
|
|
|
The max value of 255 corresponds to {NAME_MAX}.
|
2024-01-30 23:05:44 -05:00
|
|
|
|
2024-05-22 20:53:04 -04:00
|
|
|
endif # POSIX_SEMAPHORES
|