incubator-nuttx/drivers/i2c
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 Add I2C Slave driver 2024-08-07 12:13:38 -03:00
Kconfig i2c_slave: add poll waiters array 2024-08-07 12:13:38 -03:00
Make.defs Add I2C Slave driver 2024-08-07 12:13:38 -03:00
i2c_bitbang.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
i2c_driver.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
i2c_read.c drivers: Author Gregory Nutt: update licenses to Apache 2021-03-04 18:32:27 -08:00
i2c_slave_driver.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
i2c_write.c drivers: Author Gregory Nutt: update licenses to Apache 2021-03-04 18:32:27 -08:00
i2c_writeread.c drivers: Author Gregory Nutt: update licenses to Apache 2021-03-04 18:32:27 -08:00
pca9540bdp.c i2c: Remove useless restrictions 2024-08-07 12:13:38 -03:00
pca9540bdp.h drivers: Giorgio Gross : update licenses to Apache 2022-02-23 12:06:54 +01:00
tca9548a.c i2c: Remove useless restrictions 2024-08-07 12:13:38 -03:00