Crates.io | proc-modules |
lib.rs | proc-modules |
version | 0.1.0 |
source | src |
created_at | 2018-11-02 16:31:52.983691 |
updated_at | 2018-11-02 16:31:52.983691 |
description | Fetch a list of kernel modules from /proc/modules |
homepage | |
repository | https://github.com/pop-os/proc-modules |
max_upload_size | |
id | 94347 |
size | 7,467 |
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(())
}