Get a reference to the KernelInfo struct
()
| 28 | |
| 29 | /// Get a reference to the KernelInfo struct |
| 30 | pub 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 | /// |
no outgoing calls
no test coverage detected