Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/virtee/msru
A Rust-friendly user-space wrapper for reading and writing values to MSRs.
https://github.com/virtee/msru
Last synced: 25 days ago
JSON representation
A Rust-friendly user-space wrapper for reading and writing values to MSRs.
- Host: GitHub
- URL: https://github.com/virtee/msru
- Owner: virtee
- License: apache-2.0
- Created: 2023-05-19T15:01:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-30T17:31:22.000Z (12 months ago)
- Last Synced: 2024-11-21T22:31:13.599Z (2 months ago)
- Language: Rust
- Homepage:
- Size: 9.77 KB
- Stars: 1
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# msru
`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`).## Installation
Add the following line to your `Cargo.toml` file:
```toml
[dependencies]
msru = "0.2.0"
```## Usage
```rust
use msru::Msr;// X86_64 SYSCFG MSR
let msr: Msr = Msr::new(0xC0010010, 0)?;let raw_value: u64 = msr.read()?;
// ...
```