How minhkhoavu2026/cse421-project2 works
This is a Pintos-style teaching operating-system kernel: its tree contains hardware drivers, kernel threads and synchronization, user-process support, and a filesystem. The central runtime path is user-program startup through process loading, with filesystem access backed by inodes and block devices; the syscall implementation is present but unsampled, so its dispatch path is not drawn. The README provides no capability details, and several device subsystems are represented by their source directories because their implementations were not excerpted.
Main entry points: process.c Process management · thread.c Thread scheduler · init.c Kernel initialization · ide.c IDE controller
Components 22
Kernel core
- Kernel initialization
src/threads/init.c - Thread scheduler
src/threads/thread.c - Synchronization
src/threads/synch.c - Interrupt handling
src/threads/interrupt.c - Page allocation
src/threads/palloc.c - Virtual memory
src/userprog/pagedir.c
Hardware devices
- Timer service
src/devices/timer.c - Block devices
src/devices/block.c - IDE controller
src/devices/ide.c - Disk partitions
src/devices/partition.c - Other device drivers
src/devices
User processes
- Process management
src/userprog/process.c - System call interface
src/userprog/syscall.c - User exceptions
src/userprog/exception.c - Descriptor tables
src/userprog/gdt.c
Filesystem
- Filesystem operations
src/filesys/filesys.c - Directories
src/filesys/directory.c - Open files
src/filesys/file.c - Inode storage
src/filesys/inode.c - Free-space map
src/filesys/free-map.c - Filesystem utilities
src/filesys/fsutil.c
Other components
- User program
Connections 29
- Kernel initialization → Thread scheduler: initializes
src/threads/init.c - Kernel initialization → Process management: starts
src/threads/init.c - Kernel initialization → Timer service: initializes
src/threads/init.c - Kernel initialization → Interrupt handling: initializes
src/threads/init.c - Thread scheduler → Interrupt handling: yields through
src/threads/thread.c - Thread scheduler → Process management: activates
src/threads/thread.c - Thread scheduler → Synchronization: uses
src/threads/thread.c - Thread scheduler → Page allocation: allocates pages
src/threads/thread.c - Timer service → Interrupt handling: registers handler
src/devices/timer.c - Timer service → Thread scheduler: accounts ticks
src/devices/timer.c - IDE controller → Block devices: registers disks
src/devices/ide.c - IDE controller → Disk partitions: scans disks
src/devices/ide.c - IDE controller → Timer service: waits using
src/devices/ide.c - IDE controller → Synchronization: synchronizes with
src/devices/ide.c - User program → System call interface: issues calls
- System call interface → Process management: dispatches to
- Process management → Thread scheduler: creates threads
src/userprog/process.c - Process management → Open files: loads executable
src/userprog/process.c - Process management → Virtual memory: sets up address space
src/userprog/process.c - Process management → Descriptor tables: updates task state
src/userprog/process.c - Process management → Page allocation: allocates pages
src/userprog/process.c - Filesystem operations → Directories: uses
src/filesys/directory.c - Directories → Inode storage: opens
src/filesys/directory.c - Inode storage → Free-space map: allocates sectors
src/filesys/inode.c - Inode storage → Block devices: reads and writes
- Filesystem utilities → Filesystem operations: invokes
src/filesys/fsutil.c - Filesystem utilities → Directories: uses
src/filesys/fsutil.c - Filesystem utilities → Open files: uses
src/filesys/fsutil.c - User exceptions → Interrupt handling: registers handlers
src/userprog/exception.c