2 unstable releases

0.2.0 Oct 16, 2022
0.1.1 Jul 12, 2022

#696 in Unix APIs

Download history 4/week @ 2024-08-10 6/week @ 2024-08-24 8/week @ 2024-09-07 12/week @ 2024-09-21 24/week @ 2024-09-28 28/week @ 2024-10-05 56/week @ 2024-10-12 4/week @ 2024-10-19 63/week @ 2024-10-26 79/week @ 2024-11-02 36/week @ 2024-11-09

189 downloads per month

Custom license

9KB
178 lines

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.


lib.rs:

liblmod - Library for loading Linux kernel modules

Features:

  • Loading modules (modprobe)
  • Unloading modules (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)
}

No runtime deps