Envstat
envsys
Hardware monitoring sensors framework
The envsys framework is a kernel-level hardware monitoring sensors framework in NetBSD. As of 4 March 2019[update], the framework is used by close to 85 device drivers to export various environmental monitoring sensors, as evidenced by references of the sysmon_envsys_register
[1] symbol within the sys
path of NetBSD; with temperature sensors, ENVSYS_STEMP
,[2] being the most likely type to be exported by any given driver.[3]: 32 Sensors are registered with the kernel through sysmon_envsys(9)
API.[4] Consumption and monitoring of sensors from the userland is performed with the help of envstat
utility through proplib(3)
through ioctl(2)
against the /dev/sysmon
pseudo-device file,[5] the powerd
power management daemon that responds to kernel events by running scripts from /etc/powerd/scripts/
,[6][7] as well as third-party tools like symon
and GKrellM from pkgsrc.