From owner-cvs-all@FreeBSD.ORG Sun Oct 14 10:45:32 2007 Return-Path: Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 6969016A419; Sun, 14 Oct 2007 10:45:32 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3E2CE13C448; Sun, 14 Oct 2007 10:45:32 +0000 (UTC) (envelope-from netchild@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id l9EAjWjs058733; Sun, 14 Oct 2007 10:45:32 GMT (envelope-from netchild@repoman.freebsd.org) Received: (from netchild@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id l9EAjW4m058732; Sun, 14 Oct 2007 10:45:32 GMT (envelope-from netchild) Message-Id: <200710141045.l9EAjW4m058732@repoman.freebsd.org> From: Alexander Leidinger Date: Sun, 14 Oct 2007 10:45:31 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/etc Makefile sensorsd.conf src/etc/defaults rc.conf src/etc/rc.d Makefile sensorsd src/lib/libc/gen sysctl.3 src/sbin/sysctl sysctl.8 sysctl.c src/share/man/man5 rc.conf.5 src/share/man/man9 Makefile sensor_attach.9 src/sys/conf files ... X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 14 Oct 2007 10:45:32 -0000 netchild 2007-10-14 10:45:31 UTC FreeBSD src repository Modified files: etc Makefile etc/defaults rc.conf etc/rc.d Makefile lib/libc/gen sysctl.3 sbin/sysctl sysctl.8 sysctl.c share/man/man5 rc.conf.5 share/man/man9 Makefile sys/conf files sys/sys sysctl.h usr.bin/systat Makefile cmdtab.c extern.h systat.1 usr.sbin Makefile Added files: etc sensorsd.conf etc/rc.d sensorsd share/man/man9 sensor_attach.9 sys/kern kern_sensors.c sys/sys sensors.h usr.bin/systat sensors.c usr.sbin/sensorsd Makefile sensorsd.8 sensorsd.c sensorsd.conf.5 Log: Import OpenBSD's sysctl hardware sensors framework. This commit includes the following core components: * sample configuration file for sensorsd * rc(8) script and glue code for sensorsd(8) * sysctl(3) doc fixes for CTL_HW tree * sysctl(3) documentation for hardware sensors * sysctl(8) documentation for hardware sensors * support for the sensor structure for sysctl(8) * rc.conf(5) documentation for starting sensorsd(8) * sensor_attach(9) et al documentation * /sys/kern/kern_sensors.c o sensor_attach(9) API for drivers to register ksensors o sensor_task_register(9) API for the update task o sysctl(3) glue code o hw.sensors shadow tree for sysctl(8) internal magic * * HW_SENSORS definition for * sensors display for systat(1), including documentation * sensorsd(8) and all applicable documentation The userland part of the framework is entirely source-code compatible with OpenBSD 4.1, 4.2 and -current as of today. All sensor readings can be viewed with `sysctl hw.sensors`, monitored in semi-realtime with `systat -sensors` and also logged with `sensorsd`. Submitted by: Constantine A. Murenin Sponsored by: Google Summer of Code 2007 (GSoC2007/cnst-sensors) Mentored by: syrinx Tested by: many OKed by: kensmith Obtained from: OpenBSD (parts) Revision Changes Path 1.361 +1 -1 src/etc/Makefile 1.320 +2 -0 src/etc/defaults/rc.conf 1.85 +1 -1 src/etc/rc.d/Makefile 1.1 +17 -0 src/etc/rc.d/sensorsd (new) 1.1 +50 -0 src/etc/sensorsd.conf (new) 1.70 +34 -6 src/lib/libc/gen/sysctl.3 1.62 +1 -0 src/sbin/sysctl/sysctl.8 1.87 +140 -0 src/sbin/sysctl/sysctl.c 1.328 +18 -1 src/share/man/man5/rc.conf.5 1.311 +8 -0 src/share/man/man9/Makefile 1.1 +155 -0 src/share/man/man9/sensor_attach.9 (new) 1.1244 +1 -0 src/sys/conf/files 1.1 +421 -0 src/sys/kern/kern_sensors.c (new) 1.1 +168 -0 src/sys/sys/sensors.h (new) 1.149 +4 -1 src/sys/sys/sysctl.h 1.19 +1 -1 src/usr.bin/systat/Makefile 1.11 +3 -0 src/usr.bin/systat/cmdtab.c 1.15 +6 -0 src/usr.bin/systat/extern.h 1.1 +261 -0 src/usr.bin/systat/sensors.c (new) 1.54 +7 -0 src/usr.bin/systat/systat.1 1.376 +1 -0 src/usr.sbin/Makefile 1.1 +9 -0 src/usr.sbin/sensorsd/Makefile (new) 1.1 +93 -0 src/usr.sbin/sensorsd/sensorsd.8 (new) 1.1 +644 -0 src/usr.sbin/sensorsd/sensorsd.c (new) 1.1 +186 -0 src/usr.sbin/sensorsd/sensorsd.conf.5 (new)