2012-04-06 23:49:35 +08:00
|
|
|
#
|
|
|
|
# For a description of the syntax of this configuration file,
|
2015-06-28 22:08:57 +08:00
|
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
2012-04-06 23:49:35 +08:00
|
|
|
#
|
2012-04-11 07:01:40 +08:00
|
|
|
|
2012-04-15 02:01:45 +08:00
|
|
|
config FS_RAMMAP
|
|
|
|
bool "File mapping emulation"
|
|
|
|
default n
|
2024-09-23 12:46:23 +08:00
|
|
|
depends on FS_REFCOUNT
|
2012-04-15 02:01:45 +08:00
|
|
|
---help---
|
|
|
|
NuttX operates in a flat open address space and is focused on MCUs that do
|
|
|
|
support Memory Management Units (MMUs). Therefore, NuttX generally does not
|
|
|
|
require mmap() functionality and the MCUs generally cannot support true
|
|
|
|
memory-mapped files.
|
|
|
|
|
|
|
|
However, memory mapping of files is the mechanism used by NXFLAT, the NuttX
|
|
|
|
tiny binary format, to get files into memory in order to execute them.
|
|
|
|
mmap() support is therefore required to support NXFLAT.
|
|
|
|
|
|
|
|
If FS_RAMMAP is defined in the configuration, then mmap() will
|
|
|
|
support simulation of memory mapped files by copying files whole
|
|
|
|
into RAM. These copied files have some of the properties of
|
|
|
|
standard memory mapped files.
|
|
|
|
|
2018-07-09 08:24:45 +08:00
|
|
|
See nuttx/fs/mmap/README.txt for additional information.
|
2012-04-15 02:01:45 +08:00
|
|
|
|
2023-01-09 16:02:24 +08:00
|
|
|
config FS_ANONMAP
|
|
|
|
bool "Anonymous mapping emulation"
|
2023-07-16 00:44:32 +08:00
|
|
|
default !DEFAULT_SMALL
|
2023-01-09 16:02:24 +08:00
|
|
|
---help---
|
|
|
|
Simulate private anonymous mappings by plain malloc
|