Read-Only Mirror of Apache NuttX RTOS
Find a file
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
.github CI: Enable sim-02 build when we create or update a Complex PR 2024-10-24 10:35:23 +08:00
arch move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
audio audio: remove started from audio_complete 2024-10-16 20:27:45 +08:00
binfmt modlib:support modlib can load PIC elf 2024-10-16 18:40:06 +08:00
boards gcov: Fix typographical errors 2024-10-30 14:45:23 +08:00
cmake CMake/preprocess: fix typo PREPROCES -> PREPROCESS 2024-10-29 17:41:01 +08:00
crypto libc: Refine the arc4random_buf implementation 2024-10-26 18:04:21 -03:00
Documentation Doc: Migrate Smaller Vector Tables 2024-10-28 09:35:07 +08:00
drivers move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
dummy build: add initial cmake build system 2023-07-08 13:50:48 +08:00
fs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
graphics move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
include move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
libs move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
mm mm/mm_memalign: add debugging log 2024-10-30 08:40:32 +08:00
net net/usrsock: usrsock supports offload netlink 2024-10-28 19:42:05 +08:00
openamp cmake(bugfix):disable proxy and service source in open-amp 2024-10-15 15:25:20 +08:00
pass1 Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
sched gcov: Fix typographical errors 2024-10-30 14:45:23 +08:00
syscall move readv/writev to the kernel 2024-10-30 17:07:54 +08:00
tools gcov: Fix typographical errors 2024-10-30 14:45:23 +08:00
video Revert "build depend:Revert Make.dep intermediate ddc file" 2024-09-15 19:29:47 +08:00
wireless bluetooth: set bt_driver_register/unregister to xx_set/unset 2024-10-17 18:09:32 +08:00
.asf.yaml feat: add a GitHub action to lint the YAML files 2020-12-15 09:52:04 -06:00
.gitignore .gitignore: Add the .cache directory generated by clangd 2024-10-28 16:16:16 +08:00
.pre-commit-config.yaml Created pre-commit config file 2024-08-19 21:40:56 +02:00
.yamllint feat: add a GitHub action to lint the YAML files 2020-12-15 09:52:04 -06:00
AUTHORS AUTHORS: add Ville Juven 2024-10-22 23:10:08 +08:00
CMakeLists.txt toolchain/tasking: fix build break on tasking toolchain 2024-10-29 18:11:04 +08:00
CONTRIBUTING.md Contributing and PR template fix. 2024-10-12 08:12:05 +08:00
INVIOLABLES.md INVIOLABLES.md: Fix a simple alignment and change occurrences of Nuttx 2020-09-03 01:33:05 +08:00
Kconfig clang:libclang_rt.builtins-xxx.a supports builtin 2024-10-28 16:38:45 +08:00
LICENSE libc string:Separate code. 2024-10-23 09:49:19 +08:00
Makefile tools: migrate to SPDX identifier 2024-09-10 23:11:11 +08:00
NOTICE Remove the double blank line from source files 2022-02-20 20:10:14 +01:00
README.md Gathering community recommendations 2023-10-28 13:55:56 +08:00
ReleaseNotes Documentation: move ReleaseNotes 2023-09-26 20:41:00 +08:00

POSIX Badge License Issues Tracking Badge Contributors GitHub Build Badge Documentation Badge

Apache NuttX is a real-time operating system (RTOS) with an emphasis on standards compliance and small footprint. Scalable from 8-bit to 64-bit microcontroller environments, the primary governing standards in NuttX are POSIX and ANSI standards. Additional standard APIs from Unix and other common RTOSs (such as VxWorks) are adopted for functionality not available under these standards, or for functionality that is not appropriate for deeply-embedded environments (such as fork()).

For brevity, many parts of the documentation will refer to Apache NuttX as simply NuttX.

Getting Started

First time on NuttX? Read the Getting Started guide! If you don't have a board available, NuttX has its own simulator that you can run on terminal.

Documentation

You can find the current NuttX documentation on the Documentation Page.

Alternatively, you can build the documentation yourself by following the Documentation Build Instructions.

The old NuttX documentation is still available in the Apache wiki.

Supported Boards

NuttX supports a wide variety of platforms. See the full list on the Supported Platforms page.

Contributing

If you wish to contribute to the NuttX project, read the Contributing guidelines for information on Git usage, coding standard, workflow and the NuttX principles.

License

The code in this repository is under either the Apache 2 license, or a license compatible with the Apache 2 license. See the License Page for more information.