MCPcopy Create free account
hub / github.com/bendudson/EuraliOS / get_ref

Function get_ref

kernel/src/memory/kernel_info.rs:47–50  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

45}
46
47pub fn get_ref() -> &'static KernelInfo {
48 let ptr = FRAME_VIRTADDR.load(Ordering::Relaxed) as *const KernelInfo;
49 unsafe{&(*ptr)}
50}
51
52pub fn get_mut() -> &'static mut KernelInfo {
53 let ptr = FRAME_VIRTADDR.load(Ordering::Relaxed) as *mut KernelInfo;

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected