m³OS docs GitHub

Component explorer

Process Model

The process model defines what a userspace program is in m3OS and how execution moves into and between processes.

Touched by

Responsibilities

  • Represent userspace processes and their lifecycle.
  • Track address spaces, execution state, and process relationships.
  • Coordinate process creation, exit, and transition to userspace.

The process model is introduced in Userspace Entry and later touched by 34 phase(s).

Key files

  • kernel/src/process/mod.rs — Referenced in the implementation notes.
  • kernel/src/process/mod.rs::close_cloexec_fds — Each subsystem that owns an fd backend exposes its own free / release function. kernel/src/process/mod.rs::close_cloexec_fds and close_all_fds_for call those functions directly, eliminating the last arch-specific import from process cleanup.