#json #instance #lsmod #memory #outputs #std #memory-offset

yanked lrsmd

lsmod written in rust and outputs into std and json

1 unstable release

0.1.0 Jul 11, 2024

#43 in #outputs

MIT license

7KB
91 lines

lrsmod

Rust based implementation of lsmod

Also prints in JSON for automation and scripting usefulness.

Example

lrsmod -json | jq . | head -n25
[
  {
    "name": "tls",
    "memory": "151552",
    "instances": 0,
    "depends_on": "-",
    "state": "Live",
    "memory_offset": "0x0000000000000000"
  },
  {
    "name": "r8153_ecm",
    "memory": "12288",
    "instances": 0,
    "depends_on": "-",
    "state": "Live",
    "memory_offset": "0x0000000000000000"
  },
  {
    "name": "cdc_ether",
    "memory": "24576",
    "instances": 1,
    "depends_on": "r8153_ecm,",
    "state": "Live",
    "memory_offset": "0x0000000000000000"
  },

Dependencies

~4–12MB
~121K SLoC