Skip to main content

Module linux

Module linux 

Source
Expand description

Linux-specific readers for /sys and /proc.

These cover what sysinfo does not expose: hwmon sensors, RAPL energy counters, per-device disk I/O, btrfs and mdadm state.

Every reader takes its root directories from SysRoots instead of hard-coding /sys and /proc, so tests can point them at a fixture tree.

Modules§

btrfs
btrfs filesystem health from /sys/fs/btrfs/<fsid>.
diskstats
Per-device disk I/O from /proc/diskstats.
hwmon
Hardware monitoring chips from /sys/class/hwmon.
mdstat
Linux md (mdadm) arrays from /proc/mdstat.
meminfo
Supplementary memory figures from /proc/meminfo.
mounts
Mount table from /proc/mounts.
net
Network link state from /sys/class/net/<iface> and, for Wi-Fi, iw.
rapl
CPU package power from RAPL energy counters in /sys/class/powercap.

Structs§

SysRoots
Root directories of the kernel pseudo filesystems.