How batatafisher/projectos works
ProjectOS is a small 32-bit kernel with an interactive terminal shell, filesystem commands, ext2 storage, and memory and hardware support. The user workflow is keyboard input → shell command dispatch → command-specific work, such as filesystem operations, with output through the terminal. The graph also preserves interrupt, memory, driver, and C-library subsystems visible in the tree. Evidence is limited to the supplied excerpts and source index; many links between unsampled kernel modules are therefore omitted.
Main entry points: shell.c Shell · commands Shell Commands · vga_text.c Text Terminal · keyboard.c Keyboard Input
Components 22
User Interaction
- Keyboard Input
kernel/input/keyboard.c - Shell
kernel/shell/shell.c - Shell Commands
kernel/shell/commands - Text Terminal
kernel/arch/i386/vga_text.c - VGA Text Format
kernel/arch/i386/vga.h
Filesystem and Storage
- Virtual Filesystem
kernel/filesystem/vfs.c - ext2 Filesystem
kernel/filesystem/ext2.c - ATA PIO Driver
kernel/drivers/ata.c - Driver Initialization
kernel/drivers/init_drivers.c
Kernel Platform
- Kernel Entry
kernel/kernel/kernel.c - Interrupt Handling
kernel/arch/i386/interrupts.c - Fault Handling
kernel/arch/i386/faults_handler.c - 8259 PIC
kernel/arch/i386/8259_pic.c - Global Descriptor Table
kernel/arch/i386/gdt.c - Interrupt Descriptor Table
kernel/arch/i386/idt.c - Physical Memory
kernel/memory/pmm.c - Memory Management
kernel/memory/mmu.c - Virtual Memory
kernel/memory/vmm.c - Kernel Panic
kernel/kernel/panic.c
C Runtime
- Formatted I/O
libc/stdio/vprintf.c - String Utilities
libc/string/split_with.c
Other components
- User
Connections 11
- User → Keyboard Input: types on
- Keyboard Input → Shell: provides input
kernel/shell/shell.c - Shell → Shell Commands: dispatches commands
kernel/shell/shell.c - Shell → Text Terminal: echoes input
kernel/shell/shell.c - Text Terminal → VGA Text Format: formats cells
kernel/arch/i386/vga_text.c - Shell Commands → Virtual Filesystem: uses filesystem
kernel/shell/commands/filesystem/put.c - Shell Commands → Virtual Filesystem: checks paths
kernel/shell/commands/filesystem/cd.c - ext2 Filesystem → ATA PIO Driver: reads blocks
kernel/filesystem/ext2.c - Shell → String Utilities: splits commands
kernel/shell/shell.c - Shell → Formatted I/O: prints output
kernel/shell/shell.c - Fault Handling → Text Terminal: clears screen
kernel/arch/i386/faults_handler.c