MCPcopy Create free account
hub / github.com/LPC4/Full-Stack / kernel_code_modules

Function kernel_code_modules

crates/os-runtime/tests/boot.rs:133–148  ·  view source on GitHub ↗

The kernel modules with code to compile: true stdlib + boot entry (from the stdlib list) plus the kernel modules proper. `layout` is header-only and `my_kernel` is the user unit.

()

Source from the content-addressed store, hash-verified

131 .filter_map(|item| item.strip_prefix('"')?.strip_suffix('"'))
132 .map(str::to_owned)
133 .collect();
134 }
135 panic!("kernel_snippet.build must declare abi_exports");
136}
137
138// The kernel modules with code to compile: true stdlib + boot entry (from the stdlib list)
139// plus the kernel modules proper. `layout` is header-only and `my_kernel` is the user unit.
140fn kernel_code_modules() -> Vec<(&'static str, &'static str)> {
141 let mut mods = get_stdlib_modules_for_mode(TargetMode::Kernel);
142 mods.extend([
143 ("pmm", kernel::PMM),
144 ("vmm", kernel::VMM),
145 ("utilities", kernel::UTILITIES),
146 ("checks", kernel::CHECKS),
147 ("process", kernel::PROCESS),
148 ("scheduler", kernel::SCHEDULER),
149 ("syscall", kernel::SYSCALL),
150 ("fs", kernel::FS),
151 ("trap_entry", kernel::TRAP_ENTRY),

Callers 1

compiled_stdlibFunction · 0.85

Calls 1

Tested by

no test coverage detected