2 releases

new 0.1.3 May 4, 2024
0.1.2 Apr 29, 2024
0.1.1 Apr 29, 2024
0.1.0 Apr 29, 2024

#259 in Unix APIs

Download history 395/week @ 2024-04-26

395 downloads per month

Apache-2.0

14KB
288 lines

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(", ");
    }
}

No runtime deps