liblmod

Crates.ioliblmod
lib.rsliblmod
version0.2.0
sourcesrc
created_at2022-07-12 09:52:24.392068
updated_at2022-10-16 14:49:30.540198
descriptionLibrary for loading Linux kernel modules
homepagehttps://github.com/zapomnij/liblmod
repositoryhttps://github.com/zapomnij/liblmod
max_upload_size
id624303
size9,875
Jacek (zapomnij)

documentation

README

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.

Commit count: 8

cargo fmt