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
:
[]
= "1.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
Please refer to the documentation on docs.rs for detailed information.
License
This project is licensed under the MIT license. See LICENSE for more information.