Previously, this config was added to ensure that the size of the struct file remained unchanged, thereby preventing the Flash memory of resource-constrained MCUs from being unnecessarily increased. However, we have now refactored the relationship between struct fd and struct file, reducing their memory footprint in both Flash and RAM. Consequently, this config can be removed. Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
30 lines
1.1 KiB
Text
30 lines
1.1 KiB
Text
#
|
|
# For a description of the syntax of this configuration file,
|
|
# see the file kconfig-language.txt in the NuttX tools repository.
|
|
#
|
|
|
|
config FS_RAMMAP
|
|
bool "File mapping emulation"
|
|
default n
|
|
---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.
|
|
|
|
See nuttx/fs/mmap/README.txt for additional information.
|
|
|
|
config FS_ANONMAP
|
|
bool "Anonymous mapping emulation"
|
|
default !DEFAULT_SMALL
|
|
---help---
|
|
Simulate private anonymous mappings by plain malloc
|