1
0
Fork 0
forked from nuttx/nuttx-update
local-nuttx-update/fs/shm
Jukka Laitinen 366977b767 fs/shm/shmfs_alloc.c: Allocate zero-initialized memory in flat build
POSIX requires that the shm objects are zero-initialized. This has been broken
in some earlier commits (starting from 9af5fc5d09)

Also fix the flat build memory allocation to allocate both object data and payload
in the same chunk (as the comment also suggests). This saves allocations and memory
in a system with lots of shm objects.

Signed-off-by: Jukka Laitinen <jukkax@ssrc.tii.ae>
2024-12-12 21:47:41 +08:00
..
CMakeLists.txt fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
Kconfig fs/shmfs: Fix CONFIG_FS_SHM -> CONFIG_FS_SHMFS 2024-01-31 08:51:52 -08:00
Make.defs fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
shm_open.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
shm_unlink.c fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
shmfs.c arch_atomic: only support atomic_xx and atomic64_xx function 2024-12-04 14:03:14 +01:00
shmfs.h fs: migrate to SPDX identifier 2024-11-06 01:58:54 +08:00
shmfs_alloc.c fs/shm/shmfs_alloc.c: Allocate zero-initialized memory in flat build 2024-12-12 21:47:41 +08:00