rt-thread-official/components/dfs/dfs_v2/filesystems/devfs
Shell e763e51e49 feat: devfs: handling unit size in POSIX RW request
POSIX.1 says:
>  read() attempts to read up to count bytes from file descriptor fd
>  into the buffer starting at buf.

On the other hand, for rt_device_read, the `@size` is defined as the
number of unit (block size for blk device, otherwise one byte).

Changes:
- Transferred unit size from POSIX R/W(in bytes) to rt_device_R/W during
  request of file R/W operations.

Signed-off-by: Shell <smokewood@qq.com>
2024-11-13 22:56:07 -05:00
..
SConscript [DFS] add Kconfig for dfs-v2.0 (#7156) 2023-04-04 15:02:56 +08:00
devfs.c feat: devfs: handling unit size in POSIX RW request 2024-11-13 22:56:07 -05:00
devfs.h sync smart & dfs (#8672) 2024-03-28 23:42:56 +08:00
devtmpfs.c sync smart & dfs (#8672) 2024-03-28 23:42:56 +08:00