walnux/drivers/misc
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
..
addrenv.c
CMakeLists.txt drivers/misc/devmem: add dev_mem.c into cmake build 2024-10-18 21:32:48 +08:00
dev_ascii.c drivers: add ascii drvier, returns a printable string of 0x21-0x7f 2023-07-12 11:13:37 -06:00
dev_mem.c drivers/misc/devmem: remove unnecessary register parser 2024-10-18 21:32:48 +08:00
dev_null.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
dev_zero.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
goldfish_pipe.c misc/goldfish: Compatible with x86_64 goldfish pipe 2024-09-15 19:28:55 +08:00
Kconfig drivers/misc: support nuttx goldfish_pipe 2024-09-15 19:28:55 +08:00
lwl_console.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
Make.defs fs:replase all asprintf / strdup in fs with fs_heap_xxx 2024-10-15 01:16:48 +08:00
mkrd.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
optee.c drivers/optee: Return error if optee_recv return prematurely 2024-10-13 02:48:29 +08:00
optee_msg.h Remove @ and % tag from all comments 2023-12-11 17:00:10 -03:00
ramdisk.c drivers/ramdisk: add missing 'FAR' 2023-09-16 14:17:47 +08:00
rpmsgblk.c rpmsg: upgrade API passing on parameters with the upgrade of OpenAMP 2024-10-09 23:32:58 +08:00
rpmsgblk.h rpmsgblk: use a fixed length struct to transfer between two cpus 2023-11-22 08:08:12 -08:00
rpmsgblk_server.c nuttx/drivers: add ept_release_cb for destroy server resource 2024-10-10 08:44:29 +08:00
rpmsgdev.c drivers/rpmsgdev: support get more battery info by rpmsgdev 2024-10-14 18:08:14 -03:00
rpmsgdev.h rpmsgdev: devpath may exceed RPMSG_NAME_SIZE 2024-09-28 19:09:54 +08:00
rpmsgdev_server.c misc/rpmsgdev: The private data should be freed only when endpoint is released 2024-10-13 14:42:30 +08:00
rwbuffer.c drivers/rwbuffer: Set nblocks 0 after using wrflush(skip rwbuffer) 2024-09-10 15:22:03 +08:00