How rioktss/rioos works
RioOS is a small AArch64 bare-metal operating system for QEMU virt. Its main user workflow is interactive UART shell input, command dispatch, and kernel services such as filesystem and process operations; it also exposes syscall-based services to userspace. The graph preserves documented memory, scheduling, device, graphics/input, filesystem, and networking capabilities. Several relationships use README-level evidence because their implementation files were not sampled; unsampled details are not inferred.
Main entry points: commands.cpp Shell commands · syscall.cpp Syscall dispatch · fs.cpp Custom filesystem · shell.cpp Interactive shell
Components 24
User interface
- Interactive shell
kernel/shell.cpp - Keyboard input
drivers/keyboard.cpp - Shell commands
kernel/commands.cpp
Kernel services
- Syscall dispatch
kernel/syscall.cpp - Security and credentials
kernel/security.cpp - File descriptors
kernel/fd.cpp
Processes and userspace
- Process lifecycle
process/process.cpp - Process scheduling
process/scheduler.cpp - Kernel threads
process/thread.cpp - ELF loader
process/elf.cpp - Bundled calculator
userspace/calc.cpp
Filesystem and storage
- Virtual filesystem
fs/vfs.cpp - Custom filesystem
fs/fs.cpp - Storage interface
drivers/storage.cpp
Memory and devices
- UART console
drivers/uart.cpp - VirtIO block driver
drivers/virtio_blk.cpp - VirtIO MMIO
drivers/virtio_mmio.cpp - Memory management
memory/memory.cpp - MMU setup
memory/mmu.cpp - Page allocator
memory/page_alloc.cpp - Framebuffer rendering
drivers/fb.cpp
Networking
- Network stack
net/netstack.cpp - VirtIO network driver
drivers/virtio_net.cpp
Other components
- Shell user
Connections 27
- Shell user → Interactive shell: enters commands
README.md - Interactive shell → Keyboard input: reads input
kernel/shell.cpp - Interactive shell → Shell commands: dispatches
kernel/shell.cpp - Interactive shell → UART console: uses console
kernel/shell.cpp - Shell commands → Custom filesystem: runs file operations
kernel/commands.cpp - Shell commands → Network stack: runs network commands
kernel/commands.cpp - Shell commands → Process lifecycle: queries processes
kernel/commands.cpp - Shell commands → Process scheduling: queries scheduling
kernel/commands.cpp - Shell commands → Framebuffer rendering: uses graphics
kernel/commands.cpp - Bundled calculator → Syscall dispatch: uses user API
README.md - Syscall dispatch → File descriptors: dispatches FD calls
kernel/syscall.cpp - Syscall dispatch → Custom filesystem: dispatches file calls
kernel/syscall.cpp - Syscall dispatch → Virtual filesystem: uses path context
kernel/syscall.cpp - Syscall dispatch → Security and credentials: checks access
kernel/syscall.cpp - Syscall dispatch → Network stack: dispatches UDP
kernel/syscall.cpp - File descriptors → Custom filesystem: reads and writes
kernel/fd.cpp - Virtual filesystem → Custom filesystem: delegates operations
fs/vfs.cpp - Custom filesystem → Storage interface: reads and writes sectors
fs/fs.cpp - Storage interface → VirtIO block driver: delegates I/O
drivers/storage.cpp - VirtIO block driver → VirtIO MMIO: uses device access
drivers/virtio_blk.cpp - ELF loader → Custom filesystem: loads executable data
process/elf.cpp - ELF loader → MMU setup: sets user mappings
process/elf.cpp - Process scheduling → Process lifecycle: tracks processes
process/scheduler.cpp - Kernel threads → Process scheduling: cooperatively yields
README.md - Network stack → VirtIO network driver: sends and receives frames
net/netstack.cpp - Memory management → Page allocator: uses allocation
README.md - MMU setup → Memory management: supports memory mappings
README.md