#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

Download history 4/week @ 2021-01-15 10/week @ 2021-01-22 2/week @ 2021-01-29 6/week @ 2021-02-05 6/week @ 2021-02-12 4/week @ 2021-02-19 31/week @ 2021-02-26 18/week @ 2021-03-05 2/week @ 2021-03-12 8/week @ 2021-03-19 3/week @ 2021-03-26 4/week @ 2021-04-02 3/week @ 2021-04-09 5/week @ 2021-04-16 4/week @ 2021-04-23 4/week @ 2021-04-30

89 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