mirror of
https://github.com/apache/nuttx.git
synced 2026-08-10 06:55:13 +00:00
Documentation/guides/fork_vfork_migration.rst is new. It says what changed and why, gives the three primitives as a table, states plainly what breaks, and answers "which replacement do I want?" from the reader's own reason for having called fork() -- posix_spawn() or vfork() to run a program, pthread_create() or task_fork() for a second flow of control that shares memory, fork() itself for an independent copy, FORK_IS_TASK_FORK for code that cannot be changed today. It also documents the seven configuration symbols, what an architecture has to implement to gain real fork(), and the one visible consequence of moving the vfork() suspension into the kernel: a waitpid() after a child that _exit()s can only report status where CONFIG_SCHED_CHILD_STATUS is enabled. reference/user/01_task_control.rst gains entries for fork() and task_fork() and rewrites the one for vfork(), which described NuttX's limitations rather than the interface's contract. standards/posix.rst moves fork() from "No" to "Cond." and vfork() from "Yes" to "Cond.", both being conditional on the configuration now. implementation/memory_configurations.rst no longer lists fork() as unimplementable in the presence of address environments, which was the whole point of that section's wish list. Three long-standing typos in that file are corrected while touching it, since codespell checks the whole of any file a patch modifies. Signed-off-by: Marco Casaroli <marco.casaroli@gmail.com> Assisted-by: Claude Opus 5 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| bottomhalf_interrupt.rst | ||
| cancellation_points.rst | ||
| chip_h.rst | ||
| context_switches.rst | ||
| crc.rst | ||
| critical_sections.rst | ||
| device_drivers.rst | ||
| device_nodes.rst | ||
| disabling_interrupts.png | ||
| disabling_preemption.png | ||
| drivers_design.rst | ||
| file_descriptors.rst | ||
| hardfaults.rst | ||
| index.rst | ||
| interrupt_controls.rst | ||
| ioctl.rst | ||
| kernel_modules_vs_shared_libraries.rst | ||
| kernel_threads_vs_pthreads.rst | ||
| make_build_system.rst | ||
| memory_configurations.rst | ||
| naming_arch_mcu_board_interfaces.rst | ||
| naming_os_internals.rst | ||
| normal_interrupt.png | ||
| nuttx_initialization_sequence.rst | ||
| nuttx_tasking.rst | ||
| oneshot_timers_and_cpu_load.rst | ||
| power_management.rst | ||
| preemption_latency.rst | ||
| processes_vs_tasks.rst | ||
| short_delay.png | ||
| short_time_delays.rst | ||
| signal_handlers.rst | ||
| simulation.png | ||
| simulation.rst | ||
| smp.rst | ||
| syslog.rst | ||
| task_exit_sequence.png | ||
| tasks_vs_threads.rst | ||
| tickless_os.rst | ||
| tls.rst | ||
| usb.rst | ||
| user_identity.rst | ||