#kernel-module #module

proc-modules

Fetch a list of kernel modules from /proc/modules

1 unstable release

Uses old Rust 2015

0.1.0 Nov 2, 2018

#31 in #kernel-module

36 downloads per month

MIT license

7KB
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