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

Function kernel_info

euralios_std/src/time.rs:30–33  ·  view source on GitHub ↗

Get a reference to the KernelInfo struct

()

Source from the content-addressed store, hash-verified

28
29/// Get a reference to the KernelInfo struct
30pub fn kernel_info() -> &'static KernelInfo {
31 let ptr = KERNELINFO_VIRTADDR as *const KernelInfo;
32 unsafe{&(*ptr)}
33}
34
35/// Monotonic count of he number of microseconds since restart
36///

Callers 1

microseconds_monotonicFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected