How nari3040/kjg-sw-ai-w07 works
This tree is a 64-bit KAIST Pintos operating-system kernel, not the Docker development environment described by the README. Its main runtime path is user code entering the user-program subsystem, which loads executables and manages process state; threads, interrupts, virtual memory, and file storage provide internal services. The tree also contains device drivers and kernel support libraries. The supplied excerpts confirm some calls and imports, but leave syscall dispatch and several subsystem internals unsampled; unverified workflow links are therefore marked dashed.
Main entry points: interrupt.c Interrupt dispatch · vm.c VM management · filesys.c Filesystem entry · process.c Process loader
Components 27
Execution & interrupts
- Thread scheduler
pintos/threads/thread.c - Interrupt dispatch
pintos/threads/interrupt.c - Synchronization
pintos/threads/synch.c - CPU primitives
pintos/include/intrinsic.h
User programs
- System calls
pintos/userprog/syscall.c - Process loader
pintos/userprog/process.c - Exceptions
pintos/userprog/exception.c - Descriptor tables
pintos/userprog/gdt.c
Virtual memory
- VM management
pintos/vm/vm.c - Lazy pages
pintos/vm/uninit.c - Anonymous pages
pintos/vm/anon.c - File-backed pages
pintos/vm/file.c - VM inspection
pintos/vm/inspect.c - Page allocator
pintos/threads/palloc.c
File storage
- Filesystem entry
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
Devices
- Disk driver
pintos/devices/disk.c - Timer driver
pintos/devices/timer.c - Serial input/output
pintos/devices/serial.c - Keyboard driver
pintos/devices/kbd.c - VGA output
pintos/devices/vga.c
Other components
- User process
Connections 27
- User process → System calls: invokes
- System calls → Process loader: dispatches
- Process loader → Filesystem entry: opens executable
pintos/userprog/process.c - Process loader → Open files: reads executable
pintos/userprog/process.c - Process loader → VM management: manages address space
pintos/userprog/process.c - Process loader → Descriptor tables: configures process context
pintos/userprog/process.c - Thread scheduler → Interrupt dispatch: uses interrupt control
pintos/threads/thread.c - Interrupt dispatch → Thread scheduler: yields on return
pintos/threads/interrupt.c - Interrupt dispatch → CPU primitives: programs CPU state
pintos/threads/interrupt.c - Thread scheduler → Synchronization: uses locks
- Exceptions → Interrupt dispatch: registers handlers
pintos/userprog/exception.c - VM management → Lazy pages: dispatches page operations
- VM management → Anonymous pages: dispatches page operations
- VM management → File-backed pages: dispatches page operations
- VM management → VM inspection: uses inspection interface
pintos/vm/vm.c - VM management → Page allocator: allocates frames
- Filesystem entry → Directories: routes directory operations
- Directories → Inodes: uses inode operations
pintos/filesys/directory.c - Directories → Filesystem entry: uses filesystem interface
pintos/filesys/directory.c - Inodes → Free-space map: uses allocation map
pintos/filesys/inode.c - Inodes → Filesystem entry: uses filesystem interface
pintos/filesys/inode.c - FAT allocation → Disk driver: accesses disk
pintos/filesys/fat.c - FAT allocation → Filesystem entry: uses filesystem interface
pintos/filesys/fat.c - Filesystem entry → Page cache: uses cache
- Disk driver → Interrupt dispatch: registers disk interrupts
- Timer driver → Interrupt dispatch: registers timer interrupts
- Serial input/output → Interrupt dispatch: uses interrupt handling