How reliefosproject/reliefnt works
ReliefNT is the kernel-side repository for ReliefOS: it contains the x86-64 boot loader, Ring-0 kernel, bootstrap drivers and storage stack, kernel debugger, and UAPI headers—not a userland or image-building product. The main runtime path is boot into the kernel, then kernel services and drivers provide process, memory, filesystem, and device operations. README and source excerpts support the broad subsystem map, but do not expose the full boot-to-kernel or syscall dispatch wiring; those relationships are therefore omitted or marked unverified.
Main entry points: kernel.c Kernel Runtime · storage.c Storage Facade · driver_manager.c Driver Manager · syscall.c System Calls
Components 23
Boot and Architecture
- Boot Loader
boot/loader/main.c - x86-64 Platform
arch/x86_64/arch.c - Interrupt Setup
arch/x86_64/idt.c
Kernel Core
- Kernel Runtime
kernel/reliefnt/kernel.c - Task Scheduler
kernel/reliefnt/sched/sched.c - Memory Manager
mm/mm.c - Program Execution
kernel/exec/userland.c - ELF Loader
kernel/exec/elf.c
Storage and Filesystems
- Storage Facade
drivers/bootstrap/storage.c - Block I/O
drivers/bootstrap/storage/storage_block.c - Disk Management
drivers/bootstrap/storage/storage_disk.c - Storage VFS
drivers/bootstrap/storage/storage_vfs.c - exFAT Backend
drivers/bootstrap/storage/storage_exfat.c - ext4 Backend
drivers/bootstrap/storage/storage_ext4_mount.c - Proc and Sys Filesystems
fs/procfs.c
Devices and I/O
- Driver Manager
kernel/reliefnt/driver_manager.c - Network Stack
net/net.c - SVGA Graphics
drivers/bootstrap/svga/render.c - AC97 Audio
drivers/ac97/ac97.c
Interfaces and Diagnostics
- System Calls
kernel/reliefnt/syscall.c - Kernel Debugger
debug/kerneldebug.c - Kernel UAPI
include/uapi/leonos/syscall_abi.h
Other components
- Platform Firmware
Connections 21
- Platform Firmware → Boot Loader: starts
- Boot Loader → Kernel Runtime: hands off
- Kernel Runtime → x86-64 Platform: initializes
- x86-64 Platform → Interrupt Setup: configures
- Kernel Runtime → Task Scheduler: runs tasks
- Kernel Runtime → Memory Manager: uses
- Program Execution → ELF Loader: loads
- System Calls → Program Execution: dispatches
- System Calls → Kernel UAPI: implements ABI
- Storage Facade → Block I/O: includes
drivers/bootstrap/storage.c - Storage Facade → exFAT Backend: includes
drivers/bootstrap/storage.c - Storage Facade → ext4 Backend: includes
drivers/bootstrap/storage.c - Storage Facade → Storage VFS: includes
drivers/bootstrap/storage.c - Storage Facade → Disk Management: includes
drivers/bootstrap/storage.c - Storage VFS → exFAT Backend: reads files
drivers/bootstrap/storage/storage_vfs.c - Driver Manager → Kernel Runtime: manages lifecycle
- Kernel Runtime → Network Stack: provides networking
- Kernel Runtime → Proc and Sys Filesystems: exposes system state
- Driver Manager → SVGA Graphics: registers drivers
- Driver Manager → AC97 Audio: registers drivers
- Kernel Debugger → Kernel Runtime: debugs