[][src]Crate proc_modules

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

Structs

Module

A Linux kernel module.

ModuleIter

Read module entries iteratively.