git: 9front

Download patch

ref: 03b0e38598d056291e215d6be8ce8eb1fc337bd8
parent: c0fb4ee8004910b7b839acd104c8cc522ed6516b
author: qwx <qwx@sciops.net>
date: Mon Dec 1 19:04:15 EST 2025

arch(3): document cputemp file

--- a/sys/man/3/arch
+++ b/sys/man/3/arch
@@ -8,6 +8,7 @@
 .B /dev/acpitbls
 .B /dev/archctl
 .B /dev/cputype
+.B /dev/cputemp
 .B /dev/ec
 .B /dev/ioalloc
 .B /dev/iob
@@ -19,6 +20,17 @@
 .SH DESCRIPTION
 This device presents textual information about PC hardware and allows
 user-level control of the I/O ports on x86-class machines.
+.PP
+Reads from
+.I cputemp
+return the current temperature reported by the CPU,
+one line per core.
+Each line contains two integers separated by a \(+- character,
+the reading and its resolution, both in degrees Celsius.
+An
+.L alarm
+status string preceded by a space character
+may be appended to the line in case critical temperature levels are detected.
 .PP
 Reads from
 .I cputype
--