nuttx/fs/shm/Kconfig
Jukka Laitinen a0ebddaac1 fs/shm: Add initial implementation for posix shared memory
This implements the file system logic for posix shared memory:
shm_open, shm_unlink, mmap, munmap and close

For flat and protected builds the memory simply allocated from (user) heap

For kernel build the memory is allocated from page pool and mapped with MMU

This doesn't yet support protection flags or re-sizing already truncated shared
memory area.

Co-authored-by: Ville Juven <ville.juven@unikie.com>
Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2023-01-18 11:01:20 +08:00

23 lines
503 B
Plaintext

#
# For a description of the syntax of this configuration file,
# see the file kconfig-language.txt in the NuttX tools repository.
#
config FS_SHMFS
bool "Shared memory support"
default n
select ARCH_VMA_MAPPING if BUILD_KERNEL
---help---
Include support for shm_open() and shm_close.
if FS_SHMFS
config FS_SHMFS_VFS_PATH
string "Path to shared memory object storage"
default "/var/shm"
---help---
The path to where shared memory objects will exist in the VFS
namespace.
endif # FS_SHM