How uri86/urix works
URIX is a small x86-64 operating system with a kernel, filesystem, process and syscall services, and embedded userspace programs. Its main workflow boots the kernel, discovers storage and mounts a root filesystem, installs embedded programs, then starts userspace; the shell launches commands through process and syscall services. The graph also preserves documented filesystem, process, memory, device, and editor/configuration capabilities. Some subsystem paths are represented by their exact tree directories because their implementations were not excerpted; relationships are included only where excerpts or README text support them.
Main entry points: kernel.c Kernel boot · syscall.c System calls · process.c Process scheduler · urix.h Userspace API
Components 22
Kernel and devices
- Kernel boot
src/kernel.c - Interrupt handling
src/interrupts - Keyboard input
src/drivers/keyboard.c - Display output
src/drivers/vga.c - ATA driver
src/drivers/ata.c - RAM disk
src/drivers/ramdisk.c
Storage and filesystems
- Block devices
src/fs/blockdev.c - Filesystem manager
src/fs/vfs_manager.c - Virtual filesystem
src/fs/vfs.c - Ext2 filesystem
src/fs/ext2.c - Device filesystem
src/fs/devfs.c - ELF loader
src/fs/elf.c
Kernel services
- Process scheduler
src/process/process.c - System calls
src/syscall/syscall.c - FDs and pipes
src/process - Memory management
src/memory
Userspace
- C library
libc/src - Userspace API
userspace/include/urix.h - Command shell
userspace/src/shell.c - User commands
userspace/src - Text editor
userspace/src/editor.c - Config library
userspace/liburix/conf.c
Connections 29
- Kernel boot → ATA driver: initializes
src/kernel.c - Kernel boot → Block devices: initializes
src/kernel.c - Kernel boot → RAM disk: creates fallback
src/kernel.c - Kernel boot → Virtual filesystem: initializes
src/kernel.c - Kernel boot → Process scheduler: starts scheduler
src/kernel.c - Kernel boot → Virtual filesystem: writes embedded programs
src/kernel.c - Kernel boot → Process scheduler: loads init
src/kernel.c - ATA driver → Block devices: registers devices
- RAM disk → Block devices: registers device
- Filesystem manager → Block devices: scans devices
src/fs/vfs_manager.c - Filesystem manager → Ext2 filesystem: probes and formats
src/fs/vfs_manager.c - Filesystem manager → Virtual filesystem: mounts volumes
src/fs/vfs_manager.c - Virtual filesystem → Ext2 filesystem: dispatches filesystem ops
- Process scheduler → ELF loader: loads executable
src/process/process.c - Process scheduler → Memory management: creates address space
src/process/process.c - Process scheduler → FDs and pipes: manages descriptors
src/process/process.c - System calls → Process scheduler: dispatches process calls
src/syscall/syscall.c - System calls → Virtual filesystem: reads and writes files
src/syscall/syscall.c - System calls → FDs and pipes: uses descriptors and pipes
src/syscall/syscall.c - System calls → Keyboard input: reads console input
src/syscall/syscall.c - System calls → Display output: writes console output
src/syscall/syscall.c - Command shell → Userspace API: uses API
userspace/src/shell.c - Userspace API → System calls: requests kernel services
- Command shell → User commands: executes programs
userspace/src/shell.c - Text editor → Userspace API: uses file and terminal calls
userspace/src/editor.c - Text editor → Config library: loads editor settings
userspace/src/editor.c - Config library → Userspace API: uses file calls
userspace/liburix/conf.c - User commands → Userspace API: uses userspace API
userspace/src/shell.c - Userspace API → C library: shares runtime helpers