Skip to content

tinythings/kmoddep

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

kmoddep

A tiny library to work with Linux kernel module information. It currently features the following:

  • finding all available kernels
  • find module dependencies
  • lsmod (as a function)

Documentation

https://docs.rs/kmoddep/latest/kmoddep/

Usage Example

use kmoddep::modinfo::lsmod;

fn main() {
    for m in lsmod() {
        println!("{:<30} {:<10} {} {}", m.name, m.mem_size, m.instances, m.dependencies.join(", ");
    }
}