⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

Module fork

Module fork 

Source
Expand description

Process forking (copy-on-write)

Implements the fork system call which creates a child process as a copy of the current process. Provides both full-copy (fork_process) and copy-on-write (cow_fork) variants. COW fork marks all user-space pages as read-only in both parent and child, deferring physical copies to the page fault handler when either process writes.

Functions§

cow_fork
Fork with copy-on-write semantics.
fork_process
Fork current process