#linux #proc #modules

proc-modules

Fetch a list of kernel modules from /proc/modules

1 unstable release

Uses old Rust 2015

0.1.0 Nov 2, 2018

#19 in #proc

31 downloads per month

MIT license

6KB
116 lines

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(())
}

lib.rs:

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(())
}

No runtime deps