nuttx-mirror/fs
YAMAMOTO Takashi 761ee81956 move readv/writev to the kernel
currently, nuttx implements readv/writev on the top of read/write.
while it might work for the simplest cases, it's broken by design.
for example, it's impossible to make it work correctly for files
which need to preserve data boundaries without allocating a single
contiguous buffer. (udp socket, some character devices, etc)

this change is a start of the migration to a better design.
that is, implement read/write on the top of readv/writev.

to avoid a single huge change, following things will NOT be done in
this commit:

* fix actual bugs caused by the original readv-based-on-read design.
  (cf. https://github.com/apache/nuttx/pull/12674)

* adapt filesystems/drivers to actually benefit from the new interface.
  (except a few trivial examples)

* eventually retire the old interface.

* retire read/write syscalls. implement them in libc instead.

* pread/pwrite/preadv/pwritev (except the introduction of struct uio,
  which is a preparation to back these variations with the new
  interface.)
2024-10-30 17:07:54 +08:00
..
aio vfs/file: add reference counting to prevent accidental close during reading writing... 2024-09-17 12:01:53 +08:00
binfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
cromfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
driver fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
event fs: support VFS-based named event group 2024-10-09 01:40:00 +08:00
fat move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
hostfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
inode fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
littlefs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
mmap fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
mnemofs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
mount zipfs:zipfs not need mtd drivers 2024-10-08 19:55:09 +08:00
mqueue mq: correct inode release in mq_inode_release() 2024-10-09 10:17:24 +08:00
nfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
notify fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
nxffs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
partition fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
procfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
romfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
rpmsgfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
semaphore fs/semaphore: fix a minor issue with goto label 2024-10-08 23:21:54 +08:00
shm move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
smartfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
socket socketpair.c:Replace kmm with fs heap 2024-10-16 20:56:39 +08:00
spiffs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
tmpfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
unionfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
userfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
v9fs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
vfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
zipfs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
CMakeLists.txt fs/xxfs:Replace kmm with fs heap 2024-09-30 16:30:56 +08:00
fs_heap.c fs_heap: add memalign interface 2024-10-27 10:38:58 +08:00
fs_heap.h fs_heap: add memalign interface 2024-10-27 10:38:58 +08:00
fs_initialize.c fs: add fs_heap, support shm/tmpfs/pseudofile with indepent heap 2024-08-25 22:12:37 +08:00
Kconfig fs: support VFS-based named event group 2024-10-09 01:40:00 +08:00
Makefile fs: support VFS-based named event group 2024-10-09 01:40:00 +08:00