linux-memutils
Basic utilities for reading from physical memory on Linux.
Features
This crate provides modules for:
- Parsing the physical memory map provided by Linux's
/proc/iomem
file. - Tolerantly reading data from the
/dev/mem
character device file without erroring out on inaccessible bytes. - Searching for the system firmware's AGESA version in physical memory.
Usage
Add the dependency to your Cargo.toml
:
[]
= "2.0.0"
Examples
Obtaining memory regions in /proc/iomem
use iomem;
Reading bytes from a region in physical memory
use reader;
use File;
Finding the system firmware's embedded AGESA version
use agesa;
⚠️ Note that these examples need to be run with elevated privileges.
Documentation
As usual, the documentation for this library can be found on docs.rs.
Author
License
This project is licensed under the MIT license. See the LICENSE file for more information.