How sabratech/pintos works
Pintos is a small 80x86 operating-system framework. Its principal workflow is booting the kernel, scheduling threads, loading user programs, and servicing their system calls; file-system and device subsystems provide persistent and hardware-facing services. The graph preserves those documented capabilities and highlights the sampled process, scheduler, interrupt, and IDE responsibilities. Source excerpts are partial, so connections not directly visible or documented are omitted rather than inferred from module names alone.
Main entry points: process.c Process management · thread.c Thread scheduler · interrupt.c Interrupt handling · init.c Kernel initialization
Components 17
Kernel core
- Kernel initialization
src/threads/init.c - Thread scheduler
src/threads/thread.c - Thread synchronization
src/threads/synch.c - Interrupt handling
src/threads/interrupt.c - Page allocation
src/threads/palloc.c
User processes
- Process management
src/userprog/process.c - System call handling
src/userprog/syscall.c - User exceptions
src/userprog/exception.c - Address spaces
src/userprog/pagedir.c
File system
- File-system operations
src/filesys/filesys.c - Directories
src/filesys/directory.c - Inodes
src/filesys/inode.c - Free-space map
src/filesys/free-map.c
Devices
- IDE disk driver
src/devices/ide.c - Block devices
src/devices/block.c - Timer device
src/devices/timer.c
Other components
- User program
Connections 16
- User program → System call handling: requests services
- Kernel initialization → Thread scheduler: starts threads
- Kernel initialization → Process management: enables programs
- Process management → Thread scheduler: exits through
src/threads/thread.c - Thread scheduler → Process management: activates address space
src/threads/thread.c - Process management → Address spaces: activates mappings
src/userprog/process.c - Process management → Page allocation: allocates user pages
src/userprog/process.c - File-system operations → Directories: uses directory operations
src/filesys/directory.c - Directories → Inodes: uses inode operations
src/filesys/directory.c - Inodes → Free-space map: references free map
src/filesys/inode.c - IDE disk driver → Block devices: registers disk
src/devices/ide.c - IDE disk driver → Interrupt handling: handles interrupts
src/devices/ide.c - Timer device → Interrupt handling: registers timer interrupt
src/devices/timer.c - Interrupt handling → Thread scheduler: may yield
src/threads/interrupt.c - Thread scheduler → Thread synchronization: uses synchronization
src/threads/thread.c - User exceptions → Interrupt handling: registers handlers
src/userprog/exception.c