How sdgoij/minixrs works
minixrs is a Rust implementation of the MINIX 3 operating-system stack, bootable on x86_64, RISC-V64, AArch64, and wasm32. A representative user workflow starts at the shell, enters the kernel through system calls, reaches VFS, and is served by MFS and storage. The repository also includes process and memory servers, device drivers, networking, graphics/Wayland, a C library and dynamic loader, and boot-image support. The README documents these capabilities; some subsystem connections below are documented at a high level because their source was not sampled.
Main entry points: ipc.rs IPC and grants · main.rs VFS server · system.rs Kernel core · shell.rs Shell and commands
Components 21
Userland
- Shell and commands
crates/userland/src/shell.rs - C library
crates/minix-libc/src/lib.rs - Runtime and std
crates/minix-rt/src/lib.rs - Dynamic loader
crates/ldso/src/rtld.rs
Kernel
- System calls
crates/kernel/src/syscall.rs - IPC and grants
crates/kernel/src/ipc.rs - Kernel core
crates/kernel/src/system.rs - Architecture HAL
crates/arch-x86_64/src/hal.rs
System servers
- Process manager
crates/servers/src/pm.rs - Scheduler server
crates/servers/src/sched.rs - VM server
crates/servers/src/vm/mod.rs - VFS server
crates/servers/src/vfs/main.rs
Filesystems and I/O
- MFS server
crates/fs/src/mfs/main.rs - Ext2 server
crates/fs/src/ext2/main.rs - Other filesystems
crates/fs/src/iso9660/main.rs - Device drivers
crates/drivers/src/lib.rs - Networking
crates/net/src/lib.rs
Platform and graphics
- Boot images
crates/boot-image/src/lib.rs - Wayland protocol
crates/wayland/src/server.rs - Display drivers
crates/drivers/src/video/mod.rs
Other components
- User
Connections 20
- User → Shell and commands: runs commands
- Shell and commands → System calls: invokes services
- C library → System calls: uses syscalls
- Runtime and std → C library: uses runtime
- Dynamic loader → Runtime and std: loads programs
- System calls → Kernel core: enters kernel
crates/kernel/src/system.rs - Kernel core → IPC and grants: provides IPC
crates/kernel/src/system.rs - Kernel core → Architecture HAL: uses HAL
- IPC and grants → VFS server: routes requests
- IPC and grants → Process manager: routes requests
- IPC and grants → Scheduler server: routes requests
- IPC and grants → VM server: routes requests
- VFS server → MFS server: forwards filesystem requests
- VFS server → Ext2 server: dispatches filesystem requests
- VFS server → Other filesystems: dispatches filesystem requests
- VFS server → Device drivers: routes device requests
- Device drivers → Networking: supports network devices
- Boot images → Kernel core: boots system
- Shell and commands → Wayland protocol: uses graphics protocol
- Wayland protocol → Display drivers: presents display