nuttx/fs/aio
Xiang Xiao 2f4d017bb6 fs/aio: add configurable AIO_LISTIO_MAX limit
lio_listio() never validated 'nent' against {AIO_LISTIO_MAX}, so a
batch larger than the documented limit was silently accepted, and the
hard-coded _POSIX_AIO_LISTIO_MAX value of 2 was too small for real
workloads (LTP uses 10 entries per call).

Add the FS_AIO_LISTIO_MAX Kconfig option (default 10), use it for
_POSIX_AIO_LISTIO_MAX in include/limits.h, validate 'nent' in
lio_listio(), and report the limit through sysconf(_SC_AIO_LISTIO_MAX).

Signed-off-by: tengshuangshuang <tengshuangshuang@xiaomi.com>
2026-09-14 17:12:49 -03:00
..
aio.h
aio_cancel.c
aio_fsync.c fs/aio: rework lio_listio() with a lock-protected request list 2026-09-14 17:12:49 -03:00
aio_initialize.c
aio_queue.c include/debug.h: Move to include/nuttx/debug.h 2026-04-07 07:50:06 -03:00
aio_read.c fs/aio: rework lio_listio() with a lock-protected request list 2026-09-14 17:12:49 -03:00
aio_signal.c fs/aio: rework lio_listio() with a lock-protected request list 2026-09-14 17:12:49 -03:00
aio_write.c fs/aio: rework lio_listio() with a lock-protected request list 2026-09-14 17:12:49 -03:00
aioc_contain.c fs/file: unify prefix about file_xxx api, like file_open, file_ioctl 2025-06-12 18:12:42 +08:00
CMakeLists.txt fs/aio: move lio_listio() to fs/aio 2026-09-14 17:12:49 -03:00
Kconfig fs/aio: add configurable AIO_LISTIO_MAX limit 2026-09-14 17:12:49 -03:00
lio_listio.c fs/aio: add configurable AIO_LISTIO_MAX limit 2026-09-14 17:12:49 -03:00
Make.defs fs/aio: move lio_listio() to fs/aio 2026-09-14 17:12:49 -03:00