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.87 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 374.47 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 7s Average build duration of successful builds.
  • all releases: 7s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • Homepage
  • aeoliux/liblmod
    4 0 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • aeoliux

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.