1
0
Fork 0
forked from nuttx/nuttx-update
local-nuttx-update/drivers/sensors
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
..
adt7320.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
adt7320.h Remove copyright from headers 2020-11-25 05:13:46 -08:00
adxl345.h Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
adxl345_base.c inode/i_private: remove all unnecessary cast for i_private 2023-08-29 08:58:07 +02:00
adxl345_i2c.c nxstyle fixes 2021-03-13 05:56:43 -08:00
adxl345_spi.c drivers: Alan Carvalho de Assis: update licenses to Apache 2021-03-13 05:56:43 -08:00
adxl362_uorb.c nuttx/uorb: Fix incompatible type error 2024-09-19 19:54:38 +08:00
adxl372.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
adxl372_uorb.c nuttx/uorb: Fix incompatible type error 2024-09-19 19:54:38 +08:00
aht10.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
ak09912.c fix nxstyle 2024-05-09 23:44:40 +08:00
amg88xx.c feat: add basic driver for amg88xx sensor 2024-09-07 12:03:38 +08:00
apds9922.c nuttx: resolve various 'FAR' and 'CODE' issues 2024-08-26 10:21:03 +08:00
apds9960.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
as726x.c nuttx: resolve various 'FAR' and 'CODE' issues 2024-08-26 10:21:03 +08:00
as5048a.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
as5048b.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
bh1749nuc.c sensors/bh1749nuc: configure I2C frequency 2024-05-20 10:13:42 +08:00
bh1749nuc_base.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
bh1749nuc_base.h sensors/bh1749nuc: configure I2C frequency 2024-05-20 10:13:42 +08:00
bh1749nuc_uorb.c nuttx/uorb: Fix incompatible type error 2024-09-19 19:54:38 +08:00
bh1750fvi.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
bme680_uorb.c nuttx/uorb: Fix initialization error of variable of type struct sensor_ops_s 2024-09-19 19:54:38 +08:00
bmg160.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
bmi160.c bmi160: fix compile warning and %zu replace %u 2024-10-18 19:58:22 +08:00
bmi160_base.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
bmi160_base.h bmi160: fix compile warning and %zu replace %u 2024-10-18 19:58:22 +08:00
bmi160_uorb.c bmi160: fix Parameter passing error when use spi 2024-10-18 19:58:22 +08:00
bmi270.c sensors/bmi270: add support for the new sensor framework 2024-04-21 19:06:18 +08:00
bmi270_base.c sensors/bmi270: fix typo 2024-06-17 16:22:15 +08:00
bmi270_base.h sensors/bmi270: add support for the new sensor framework 2024-04-21 19:06:18 +08:00
bmi270_uorb.c nuttx/uorb: Fix incompatible type error 2024-09-19 19:54:38 +08:00
bmm150_uorb.c nuttx/uorb: Fix incompatible type error 2024-09-19 19:54:38 +08:00
bmp180.c sensor/bmp180.c:provides work in character device mode and UORB communication mode. 2023-09-06 08:02:52 +02:00
bmp180_base.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
bmp180_base.h sensor/bmp180.c:provides work in character device mode and UORB communication mode. 2023-09-06 08:02:52 +02:00
bmp180_uorb.c nuttx/uorb: Fix incompatible type error 2024-09-19 19:54:38 +08:00
bmp280_uorb.c nuttx/uorb: Fix incompatible type error 2024-09-19 19:54:38 +08:00
CMakeLists.txt nuttx/uorb: Rename GPS to GNSS 2024-09-19 03:44:49 +08:00
dhtxx.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
ds18b20_uorb.c nuttx/uorb: Fix incompatible type error 2024-09-19 19:54:38 +08:00
fakesensor_uorb.c nuttx/uorb: Rename GPS to GNSS 2024-09-19 03:44:49 +08:00
fxos8700cq.c drivers: remove redundant parentheses 2023-07-31 18:56:40 -07:00
gnss_uorb.c circbuf: Move from mm/circbuf to libs/libc/misc 2024-10-09 08:41:49 +08:00
goldfish_gnss_uorb.c nuttx/uorb: Rename GPS to GNSS 2024-09-19 03:44:49 +08:00
goldfish_sensor_uorb.c convert pointer string to number in base 16 2024-08-14 22:36:57 +08:00
hall3ph.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
hc_sr04.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
hdc1008.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
hts221.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
hyt271_uorb.c nuttx/uorb: Fix incompatible type error 2024-09-19 19:54:38 +08:00
ina219.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
ina226.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
ina3221.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
isl29023.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
Kconfig nuttx/uorb: Rename GPS to GNSS 2024-09-19 03:44:49 +08:00
kxtj9.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
l3gd20_uorb.c sensors: add suffix _uorb to all sensors that use the new sensor framework 2023-09-21 20:30:08 +08:00
lis2dh.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
lis3dh.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
lis3dsh.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
lis3mdl.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
lis331dl.c drivers: Nxstyle fixes 2021-04-01 12:13:12 -05:00
lm75.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
lm92.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
lps25h.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
lsm6dsl.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
lsm9ds1.c sensors: add uorb support for lsm9ds1 2024-03-09 11:53:57 +08:00
lsm9ds1_base.c sensors: add uorb support for lsm9ds1 2024-03-09 11:53:57 +08:00
lsm9ds1_base.h sensors: add uorb support for lsm9ds1 2024-03-09 11:53:57 +08:00
lsm9ds1_uorb.c nuttx/uorb: Fix incompatible type error 2024-09-19 19:54:38 +08:00
lsm303agr.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
lsm330_spi.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
ltc4151.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
ltr308_uorb.c nuttx/uorb: Fix initialization error of variable of type struct sensor_ops_s 2024-09-19 19:54:38 +08:00
Make.defs nuttx/uorb: Rename GPS to GNSS 2024-09-19 03:44:49 +08:00
max6675.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
max31855.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
max31865.c nuttx: resolve various 'FAR' and 'CODE' issues 2024-08-26 10:21:03 +08:00
max44009.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
mb7040.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
mcp9844.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
mlx90393.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
mlx90614.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
mpl115a.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
mpu60x0.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
mpu9250_uorb.c nuttx/uorb: Fix incompatible type error 2024-09-19 19:54:38 +08:00
ms56xx_uorb.c nuttx/uorb: Fix incompatible type error 2024-09-19 19:54:38 +08:00
ms58xx.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
msa301.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
qencoder.c Remove the unnecessary NULL fields in global instance definition of file_operations 2023-01-04 00:32:13 +02:00
scd30.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
scd41.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
sensor.c circbuf: Move from mm/circbuf to libs/libc/misc 2024-10-09 08:41:49 +08:00
sensor_rpmsg.c nuttx/drivers: add ept_release_cb for destroy server resource 2024-10-10 08:44:29 +08:00
sgp30.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
sht3x.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
sht4x.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
sht21.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
sps30.c move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
t67xx.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
usensor.c usensor.c:fix container_of member error. 2024-10-09 01:33:19 +08:00
veml6070.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00
vl53l1x.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
wtgahrs2_uorb.c nuttx/uorb: Rename GPS to GNSS 2024-09-19 03:44:49 +08:00
xen1210.c nuttx: fix multiple 'FAR', 'CODE' and style issues 2024-08-25 19:22:15 +08:00
xen1210.h Replace nxsem API when used as a lock with nxmutex API 2022-10-17 15:59:46 +09:00
zerocross.c mm/alloc: remove all unnecessary cast for alloc 2023-08-30 14:34:20 +08:00