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

已删除 lrsmd

lsmod 以 Rust 编写,输出至 std 和 json

1 个不稳定版本

0.1.0 2024年7月11日

#52#outputs

Download history 98/week @ 2024-07-11

98 每月下载次数

MIT 许可证

7KB
91 代码行

lrsmod

Rust 实现的 lsmod

还以 JSON 格式输出,以便于自动化和脚本编写。

示例

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"
  },

依赖关系

~3–12MB
~100K SLoC