msru 0.2.0

A Rust-safe library for interracting with Model Specific Registers in user-space.
Documentation
  • Coverage
  • 46.15%
    6 out of 13 items documented0 out of 8 items with examples
  • Size
  • Source code size: 15.98 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.04 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • virtee/msru
    1 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • larrydewey github:virtee:owners

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:

[dependencies]
msru = "0.2.0"

Usage

use msru::Msr;

// X86_64 SYSCFG MSR
let msr: Msr = Msr::new(0xC0010010, 0)?;

let raw_value: u64 = msr.read()?;

// ...