liblmod 0.2.0

Library for loading Linux kernel modules
Documentation
  • Coverage
  • 92.31%
    12 out of 13 items documented5 out of 7 items with examples
  • Size
  • Source code size: 9.55 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 1.63 MB This is the summed size of all files generated by rustdoc for all configured targets
  • Links
  • Homepage
  • aeoliux/liblmod
    4 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • zapomnij

liblmod - Library for loading Linux kernel modules

Features:

  • modprobe
  • rmmod

Example code:

extern crate liblmod;

fn main() -> std::io::Result<()> {
    println!("Unloading module kvm");
    liblmod::rmmod("kvm".to_string(), liblmod::Flags::Force)?;

    println!("Loading module kvm");
    liblmod::modprobe("kvm".to_string(), "".to_string(), liblmod::Selection::Current)
}

License

Crate is licensed to MIT/X11 license.