proc-modules

Crates.ioproc-modules
lib.rsproc-modules
version0.1.0
sourcesrc
created_at2018-11-02 16:31:52.983691
updated_at2018-11-02 16:31:52.983691
descriptionFetch a list of kernel modules from /proc/modules
homepage
repositoryhttps://github.com/pop-os/proc-modules
max_upload_size
id94347
size7,467
Jeremy Soller (jackpot51)

documentation

README

proc-modules

Rust crate that provides easy access to active kernel modules in /proc/modules.

extern crate proc_modules;

use proc_modules::ModuleIter;
use std::io;

fn main() -> io::Result<()> {
    for module in ModuleIter::new()? {
        println!("{:#?}", module?);
    }

    Ok(())
}
Commit count: 2

cargo fmt