| Crates.io | msru |
| lib.rs | msru |
| version | 0.2.0 |
| created_at | 2023-05-19 21:30:09.016075+00 |
| updated_at | 2023-05-25 18:15:06.141594+00 |
| description | A Rust-safe library for interracting with Model Specific Registers in user-space. |
| homepage | https://github.com/virtee/msru |
| repository | https://github.com/virtee/msru |
| max_upload_size | |
| id | 869106 |
| size | 16,329 |
msru provides a Rust-friendly interface for x86_64 CPU MSRs
(Model Specific Registers). It allows you to read and write to MSRs
via a specified CPU msr device file (/dev/cpu/{cpu_number}/msr).
Add the following line to your Cargo.toml file:
[dependencies]
msru = "0.2.0"
use msru::Msr;
// X86_64 SYSCFG MSR
let msr: Msr = Msr::new(0xC0010010, 0)?;
let raw_value: u64 = msr.read()?;
// ...