zephyr/lib/posix/options/Kconfig.mqueue
Pieter De Gendt ad63ca284e kconfig: replace known integer constants with variables
Make the intent of the value clear and avoid invalid ranges with typos.

Signed-off-by: Pieter De Gendt <pieter.degendt@basalte.be>
2024-07-27 20:49:15 +03:00

41 lines
948 B
Text

# Copyright (c) 2017 Intel Corporation
#
# SPDX-License-Identifier: Apache-2.0
menuconfig POSIX_MESSAGE_PASSING
bool "POSIX message queue support"
help
This enabled POSIX message queue related APIs.
if POSIX_MESSAGE_PASSING
config POSIX_MQ_OPEN_MAX
int "Maximum number of messages in a POSIX message queue"
default 16
help
Mention maximum number of messages in message queue in POSIX compliant
application.
config POSIX_MQ_PRIO_MAX
int "Maximum number of POSIX message priorities"
default 32
help
Maximum number of message priorities supported by the implementation.
config MSG_SIZE_MAX
int "Maximum size of a POSIX message"
default 16
help
Mention maximum size of message in bytes.
config MQUEUE_NAMELEN_MAX
int "Maximum POSIX message queue name size"
default 16
range 2 $(UINT8_MAX)
help
Mention size of message queue name in number of characters.
config HEAP_MEM_POOL_ADD_SIZE_MQUEUE
def_int 1024
endif