nuttx-mirror/drivers/virtio
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
..
CMakeLists.txt virtio-pci: extract common part of virtio pci modern and leagcy 2024-09-15 02:22:16 +08:00
Kconfig virtio-serial: support custom the virtio serial device name 2024-10-06 08:37:53 +08:00
Make.defs virtio-pci: extract common part of virtio pci modern and leagcy 2024-09-15 02:22:16 +08:00
virtio-blk.c virtio: adapt to the new OpenAMP 2024-10-09 23:32:58 +08:00
virtio-blk.h virtio: add virtio framework in NuttX 2023-08-10 03:39:39 +08:00
virtio-gpu.c virtio: adapt to the new OpenAMP 2024-10-09 23:32:58 +08:00
virtio-gpu.h virtio-gpu: convert virito-gpu fb_register to virtio_gpu_fb_register 2023-12-13 09:05:17 -08:00
virtio-input.c virtio: adapt to the new OpenAMP 2024-10-09 23:32:58 +08:00
virtio-input.h drivers/virtio: add virtio input driver 2023-08-13 11:47:39 -03:00
virtio-mmio.c virtio-mmio/pci: add alloc_buf/free_buf for mmio and pci transport layer 2024-10-09 23:32:58 +08:00
virtio-net.c virtio: adapt to the new OpenAMP 2024-10-09 23:32:58 +08:00
virtio-net.h virtio: add virtio framework in NuttX 2023-08-10 03:39:39 +08:00
virtio-pci-legacy.c virtio-pci/mmio: Features change to 64 bit in all virtio_dispatch and fix compile warning 2024-10-09 23:32:58 +08:00
virtio-pci-modern.c virtio-pci/mmio: Features change to 64 bit in all virtio_dispatch and fix compile warning 2024-10-09 23:32:58 +08:00
virtio-pci.c virtio-mmio/pci: add alloc_buf/free_buf for mmio and pci transport layer 2024-10-09 23:32:58 +08:00
virtio-pci.h virtio-pci/mmio: Features change to 64 bit in all virtio_dispatch and fix compile warning 2024-10-09 23:32:58 +08:00
virtio-rng.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
virtio-rng.h virtio: add virtio framework in NuttX 2023-08-10 03:39:39 +08:00
virtio-rpmb.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
virtio-rpmb.h rpmb: add virtio rpmb support 2023-09-09 00:13:25 +08:00
virtio-serial.c driver/serial: remove return value of up_putc() 2024-10-26 13:21:29 +08:00
virtio-serial.h virtio: add virtio framework in NuttX 2023-08-10 03:39:39 +08:00
virtio-snd.c virtio: adapt to the new OpenAMP 2024-10-09 23:32:58 +08:00
virtio-snd.h audio:add virtio snd driver 2023-08-11 20:40:40 +08:00
virtio.c virtio-mmio/pci: add alloc_buf/free_buf for mmio and pci transport layer 2024-10-09 23:32:58 +08:00