pub fn parse_proc_iomem() -> Result<Vec<MemoryRegion>>
Expand description
Directly read and parse /proc/iomem
to a vector of MemoryRegion
s.
§Errors
This function will return an error if /proc/iomem
could not be read.
§Panics
This function panics if the file contains unexpected lines or ones with invalid memory addresses. As this should never happen on a standard Linux kernel, it may indicate a somewhat corrupt system state.