How how-to-song/kraftonjungle_week7 works
Pintos is a 64-bit x86-64 teaching operating system. Its principal workflow is to start and schedule a user process, load its executable, handle system calls and faults, and use kernel memory and file/device services to produce process-visible results. The graph separates process management, virtual memory, filesystem, and kernel/device responsibilities. Source excerpts establish several calls; other links are included only where the SOURCE INDEX supports them. The README describes a Docker-based development environment, not additional runtime product behavior.
Main entry points: process.c Process lifecycle · vm.c VM management · thread.c Threads and scheduler · interrupt.c Interrupt dispatch
Components 23
Kernel execution
- Threads and scheduler
pintos/threads/thread.c - Interrupt dispatch
pintos/threads/interrupt.c - Synchronization
pintos/threads/synch.c - Timer device
pintos/devices/timer.c - Serial device
pintos/devices/serial.c
User processes
- System calls
pintos/userprog/syscall.c - Process lifecycle
pintos/userprog/process.c - Exceptions and faults
pintos/userprog/exception.c - CPU segments
pintos/userprog/gdt.c
Virtual memory
- VM management
pintos/vm/vm.c - Anonymous pages
pintos/vm/anon.c - File-backed pages
pintos/vm/file.c - Lazy page setup
pintos/vm/uninit.c - VM inspection
pintos/vm/inspect.c
Storage and devices
- Filesystem operations
pintos/filesys/filesys.c - Directories
pintos/filesys/directory.c - Open files
pintos/filesys/file.c - Inodes
pintos/filesys/inode.c - FAT allocation
pintos/filesys/fat.c - Free-space map
pintos/filesys/free-map.c - Page cache
pintos/filesys/page_cache.c - Disk driver
pintos/devices/disk.c
Other components
- User program
Connections 25
- User program → System calls: requests services
- System calls → Process lifecycle: dispatches
- Process lifecycle → Filesystem operations: opens executable
pintos/userprog/process.c - Process lifecycle → Open files: reads executable
pintos/userprog/process.c - Process lifecycle → Threads and scheduler: uses threads
pintos/userprog/process.c - Process lifecycle → VM management: manages address space
pintos/userprog/process.c - Process lifecycle → CPU segments: updates task state
pintos/userprog/process.c - Exceptions and faults → Interrupt dispatch: registers handlers
pintos/userprog/exception.c - Exceptions and faults → Threads and scheduler: uses thread state
pintos/userprog/exception.c - Threads and scheduler → Interrupt dispatch: uses interrupt controls
pintos/threads/thread.c - Threads and scheduler → Synchronization: uses locks
- Interrupt dispatch → Threads and scheduler: yields on return
pintos/threads/interrupt.c - VM management → Anonymous pages: dispatches page operations
- VM management → File-backed pages: dispatches page operations
- VM management → Lazy page setup: uses page types
- VM management → VM inspection: supports inspection
pintos/vm/vm.c - VM management → Page cache: uses cache pages
- Filesystem operations → Directories: uses directory services
- Directories → Inodes: operates on inodes
pintos/filesys/directory.c - FAT allocation → Disk driver: accesses disk
pintos/filesys/fat.c - Inodes → Free-space map: allocates sectors
pintos/filesys/inode.c - Disk driver → Timer device: waits during detection
pintos/devices/disk.c - Disk driver → Synchronization: waits for completion
pintos/devices/disk.c - Serial device → Interrupt dispatch: registers device interrupts
pintos/devices/serial.c - Timer device → Interrupt dispatch: registers timer interrupt
pintos/devices/timer.c