walnux/drivers/loop
YAMAMOTO Takashi 30ad31e9d7 uio api tweaks
* Make readv/writev implementations update struct uio
  This can simplify partial result handling.

* change the error number on the overflow from EOVERFLOW to EINVAL
  to match NetBSD

* add a commented out uio_offset field. I used "#if 0" here as
  C comments can't nest.

* add a few helper functions

Note on uio_copyfrom/uio_copyto:
although i'm not quite happy with the "offset" functionality,
it's necessary to simplify the adaptation of some drivers like
drivers/serial/serial.c, which (ab)uses the user-supplied buffer
as a line-buffer.
2025-01-14 20:18:21 +08:00
..
CMakeLists.txt drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00
Kconfig
loop.c uio api tweaks 2025-01-14 20:18:21 +08:00
losetup.c Remove duplicate includes across multiple files 2025-01-09 23:30:23 +08:00
Make.defs drivers: migrate to SPDX identifier 2024-11-06 18:02:25 +08:00