How luuunodotxd/the-freerootsdos works
FreeRootSDOS is a minimal 32-bit x86 operating system with a command shell, persistent and RAM filesystems, a graphical Balloon desktop, and networking. The primary user path is input through the shell, command dispatch, then a filesystem, network, or other OS service returning output to the terminal. Balloon provides a parallel graphical entry point to desktop tools. The README documents the broader driver and protocol capabilities; source excerpts and the index show only some wiring, so links to unsampled subsystems are included only where documented, and uncertain calls are omitted.
Main entry points: shell.c Interactive shell · balloon.c Balloon desktop · fs_disk.c Persistent filesystem · net.c Network protocols
Components 29
Kernel services
- Kernel entry
kernel/kernel.c - IDT and timer
kernel/idt.c - Kernel heap
kernel/kmalloc.c
Shell and tools
- Interactive shell
shell/shell.c - Text terminal
shell/terminal.c - Virtual terminals
shell/tty.c - Environment variables
shell/env.c - Shell programs
shell/programs.c
Filesystems and storage
- RAM filesystem
fs/fs.c - Persistent filesystem
fs/fs_disk.c
Networking
- Network protocols
net/net.c - ARP
net/arp.c - IP and ICMP
net/ip.c - TCP and UDP
net/tcp.c - DNS
net/dns.c
Balloon desktop
- Balloon desktop
gui/balloon.c - Minesweeper
gui/minesweeper.c - BMP viewer
gui/bmp.c
Device drivers
- ATA disk
drivers/storage/ata/disk.c - Storage interface
drivers/storage/storage.c - Network device HAL
drivers/net/netdev.c - NIC drivers
drivers/net - Sound HAL
drivers/sound/sound.c - Sound drivers
drivers/sound - PS/2 input
drivers/input/ps2/keyboard.c - VGA video
drivers/video/vga/vga12h.c
Other components
- User
- Network peer
- Disk hardware
Connections 34
- User → Interactive shell: enters commands
README.md - Interactive shell → Text terminal: reads and prints
shell/shell.c - Interactive shell → Shell programs: dispatches tools
shell/shell.c - Interactive shell → Virtual terminals: switches terminals
shell/shell.c - Interactive shell → Environment variables: expands variables
README.md - Shell programs → RAM filesystem: reads and writes
shell/programs.c - Interactive shell → RAM filesystem: runs filesystem commands
shell/shell.c - Interactive shell → Persistent filesystem: runs disk commands
shell/shell.c - Shell programs → Persistent filesystem: loads and saves files
shell/programs.c - Persistent filesystem → ATA disk: reads and writes sectors
fs/fs_disk.c - Persistent filesystem → Kernel heap: allocates file buffers
fs/fs_disk.c - Kernel entry → IDT and timer: initializes interrupts
- Kernel entry → Kernel heap: initializes heap
- IDT and timer → PS/2 input: dispatches IRQs
kernel/idt.c - Interactive shell → Network protocols: runs network commands
shell/shell.c - Interactive shell → Network device HAL: reports active adapter
shell/shell.c - Network protocols → ARP: uses address resolution
- Network protocols → IP and ICMP: handles IP traffic
- Network protocols → TCP and UDP: handles transport
- DNS → TCP and UDP: queries via UDP
net/dns.c - Network device HAL → NIC drivers: selects detected driver
- Network protocols → Network peer: exchanges packets
README.md - User → Balloon desktop: opens desktop
README.md - Balloon desktop → VGA video: draws interface
gui/balloon.c - Balloon desktop → PS/2 input: reads keyboard and mouse
gui/balloon.c - Balloon desktop → Text terminal: hosts terminal
gui/balloon.c - Balloon desktop → Interactive shell: submits commands
- Balloon desktop → RAM filesystem: browses files
gui/balloon.c - Balloon desktop → Persistent filesystem: accesses disk files
gui/balloon.c - Balloon desktop → Minesweeper: opens game
README.md - Balloon desktop → BMP viewer: offers image viewing
- Sound HAL → Sound drivers: selects detected driver
README.md - Shell programs → Sound HAL: requests sound
- Persistent filesystem → Disk hardware: persists data
README.md