1 unstable release
Uses old Rust 2015
0.1.0 | Nov 2, 2018 |
---|
#21 in #kernel-module
36 downloads per month
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(())
}