nuttx/fs/shm
fangxinyong ea52220509 fs/shmfs: fix inode leak issue
If the shm file is removed and a subsequent close, only release shm
object, but inode is leaked. Should decrease refcount to release inode
when unmapped, that matched with refcount increase when mapped.

Another fix that remove the shm file failed.
nsh> rm /var/shm/pts_mmap_1_2_5
nsh: rm: unlink failed: 6

Signed-off-by: fangxinyong <fangxinyong@xiaomi.com>
2023-08-02 22:57:28 -07:00
..
CMakeLists.txt build: add initial cmake build system 2023-07-08 13:50:48 +08:00
Kconfig fs/shm: Add initial implementation for posix shared memory 2023-01-18 11:01:20 +08:00
Make.defs fs/shm: Add initial implementation for posix shared memory 2023-01-18 11:01:20 +08:00
shm_open.c sim/posix_test: fix shm_open() return file descriptor associated with FD_CLOEXEC 2023-07-11 13:30:34 +08:00
shm_unlink.c fs/shm: use ERROR instead of -1 2023-01-26 10:26:09 +08:00
shmfs.c fs/shmfs: fix inode leak issue 2023-08-02 22:57:28 -07:00
shmfs.h fs: Add g_ prefix for all global file_operations instances 2023-04-24 16:13:29 +02:00
shmfs_alloc.c fs/shm: update pointer arithmetic logic 2023-01-26 10:26:09 +08:00