Download kernel/src/lib.rs from monika-p/VyronOS: direct link, hf CLI and curl.
- Browser
- Download file 1.28 kB
-
https://huggingface.co/datasets/monika-p/VyronOS/resolve/main/kernel/src/lib.rs
- Command line
-
hf download hf://datasets/monika-p/VyronOS/kernel/src/lib.rs
-
curl -L -o lib.rs https://huggingface.co/datasets/monika-p/VyronOS/resolve/main/kernel/src/lib.rs
1.28 kB
| // ============================================================================== | |
| // VYRON Micro-OS Kernel - Library Exports | |
| // Core Kernel Subsystems and Architectural Modules | |
| // ============================================================================== | |
| pub mod kernel; | |
| pub mod task; | |
| pub mod scheduler; | |
| pub mod timer; | |
| pub mod sync; | |
| pub mod memory; | |
| pub mod syscall; | |
| // Enhanced Subsystems Adapted from EuraliOS (MIT License - Ben Dudson) | |
| pub mod ipc; | |
| pub mod drivers; | |
| pub mod vfs; | |
| pub use kernel::{KernelDiagnostics, LogLevel, boot_banner}; | |
| pub use task::{Task, TaskState, TaskPriority, TaskContext}; | |
| pub use scheduler::{RoundRobinScheduler, MlfqScheduler, ContextSwitchRecord}; | |
| pub use timer::HardwareTimer; | |
| pub use sync::{Spinlock, SpinlockGuard}; | |
| pub use memory::{BumpAllocator, FreeListAllocator}; | |
| pub use syscall::{SyscallDispatcher, SYS_WRITE, SYS_YIELD, SYS_GETPID, SYS_ALLOC, SYS_EXIT}; | |
| // IPC Exports | |
| pub use ipc::{IpcHub, RendezvousChannel, Message, MessageData, IpcError}; | |
| // Drivers & Hardware Bus Exports | |
| pub use drivers::{PciBus, PciDevice, PciLocation, PciBar, PciBarType}; | |
| pub use drivers::net::{MacAddress, Rtl8139Device, VirtioNetDevice, VirtioNetHeader}; | |
| // Capability VFS Exports | |
| pub use vfs::{VfsRoot, MemoryDirectory, MemoryFile, FileLike, DirLike}; | |