MCPcopy Create free account
hub / github.com/Starry-OS/StarryOS / init

Function init

api/src/lib.rs:24–35  ·  view source on GitHub ↗

Initialize.

()

Source from the content-addressed store, hash-verified

22
23/// Initialize.
24pub fn init() {
25 info!("Initialize VFS...");
26 vfs::mount_all().expect("Failed to mount vfs");
27
28 info!("Initialize /proc/interrupts...");
29 axtask::register_timer_callback(|_| {
30 time::inc_irq_cnt();
31 });
32
33 info!("Initialize alarm...");
34 starry_core::time::spawn_alarm_task();
35}

Callers 1

mainFunction · 0.85

Calls 3

mount_allFunction · 0.85
inc_irq_cntFunction · 0.85
spawn_alarm_taskFunction · 0.85

Tested by

no test coverage detected