nuttx/drivers/loop
YAMAMOTO Takashi 3a2d42ba24 uio api tweaks
VELAPLATFO-60135:VELAPLATFO-60136

* 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.

Signed-off-by: Yongrong Wang <wangyongrong@xiaomi.com>
2026-04-21 01:17:29 +08:00
..
CMakeLists.txt drivers: migrate to SPDX identifier 2026-04-21 01:13:35 +08:00
Kconfig Some minor clean-up from last changes 2015-11-25 17:52:47 -06:00
Make.defs drivers: migrate to SPDX identifier 2026-04-21 01:13:35 +08:00
loop.c uio api tweaks 2026-04-21 01:17:29 +08:00
losetup.c drivers: migrate to SPDX identifier 2026-04-21 01:13:35 +08:00