kmoddep

Crates.iokmoddep
lib.rskmoddep
version0.1.5
sourcesrc
created_at2024-04-29 20:58:47.929407
updated_at2024-07-10 13:29:54.726592
descriptionLinux module information
homepagehttps://github.com/isbm/kmoddep
repositoryhttps://github.com/isbm/kmoddep
max_upload_size
id1224499
size26,595
Bo Maryniuk (isbm)

documentation

README

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(", ");
    }
}
Commit count: 18

cargo fmt