How medhansh5/janus works
Janus is a security-first x86_64 microkernel: boot establishes the kernel environment, then Ring 3 tasks request privileged operations through the syscall ABI. The kernel dispatches calls to IPC and capability checks, while task scheduling, memory management, and hardware interrupt handling support execution. PCI discovery and scoped device access are documented capabilities. The graph reflects sampled kernel modules and README-described behavior; userspace drivers and init are documented, but their implementations are not present in the supplied tree.
Main entry points: ipc.rs IPC Dispatch · idt.rs Interrupt Dispatch · syscall.rs Syscall ABI · main.rs Bootloader
Components 16
Boot Handoff
- Bootloader
bootloader/src/main.rs - Boot Info
boot-info/src/lib.rs - Kernel Bootstrap
kernel/src/main.rs
Kernel Boundary
- Syscall ABI
kernel/src/syscall.rs - Capability Table
kernel/src/capability.rs - IPC Dispatch
kernel/src/ipc.rs
Task Execution
- Task Scheduler
kernel/src/task.rs - Frame Allocator
kernel/src/memory.rs - Virtual Memory
kernel/src/paging.rs - GDT and TSS
kernel/src/gdt.rs
Hardware Services
- Interrupt Dispatch
kernel/src/idt.rs - PIC Routing
kernel/src/pic.rs - PCI Discovery
kernel/src/pci.rs
Other components
- UEFI Firmware
- Ring 3 Task
- Userspace Driver
Connections 14
- UEFI Firmware → Bootloader: starts
README.md - Bootloader → Kernel Bootstrap: hands off
- Boot Info → Kernel Bootstrap: provides boot data
- Ring 3 Task → Syscall ABI: invokes
README.md - Syscall ABI → IPC Dispatch: dispatches calls
kernel/src/syscall.rs - IPC Dispatch → Capability Table: checks handles
kernel/src/ipc.rs - IPC Dispatch → Task Scheduler: blocks or wakes
kernel/src/ipc.rs - Task Scheduler → GDT and TSS: updates stack
kernel/src/task.rs - Virtual Memory → Frame Allocator: allocates frames
kernel/src/paging.rs - Interrupt Dispatch → GDT and TSS: uses selectors
kernel/src/idt.rs - Interrupt Dispatch → PIC Routing: acknowledges IRQ
kernel/src/idt.rs - Interrupt Dispatch → IPC Dispatch: wakes IRQ waiters
kernel/src/idt.rs - Userspace Driver → Syscall ABI: uses capabilities
README.md - Userspace Driver → PCI Discovery: accesses scoped devices