Module Name: src
Committed By: pgoyette
Date: Fri Mar 19 02:20:44 UTC 2010
Modified Files:
src/share/man/man9: sysmon_envsys.9
Log Message:
Document the new sysmon_envsys_sensor_event() function.
To generate a diff of this commit:
cvs rdiff -u -r1.35 -r1.36 src/share/man/man9/sysmon_envsys.9
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/share/man/man9/sysmon_envsys.9
diff -u src/share/man/man9/sysmon_envsys.9:1.35 src/share/man/man9/sysmon_envsys.9:1.36
--- src/share/man/man9/sysmon_envsys.9:1.35 Thu Mar 18 22:11:48 2010
+++ src/share/man/man9/sysmon_envsys.9 Fri Mar 19 02:20:44 2010
@@ -1,4 +1,4 @@
-.\" $NetBSD: sysmon_envsys.9,v 1.35 2010/03/18 22:11:48 pgoyette Exp $
+.\" $NetBSD: sysmon_envsys.9,v 1.36 2010/03/19 02:20:44 pgoyette Exp $
.\"
.\" Copyright (c) 2007, 2008 The NetBSD Foundation, Inc.
.\" All rights reserved.
@@ -47,6 +47,8 @@
.Fn sysmon_envsys_sensor_attach "struct sysmon_envsys *" "envsys_data_t *"
.Ft int
.Fn sysmon_envsys_sensor_detach "struct sysmon_envsys *" "envsys_data_t *"
+.Ft void
+.Fn sysmon_envsys_sensor_event "struct sysmon_envsys *" "envsys_data_t *" "int"
.Sh DESCRIPTION
.Pp
.Nm
@@ -96,6 +98,17 @@
.Em sysmon_envsys
object.
.Pp
+Some sensors can be monitored, and when the sensor value changes an event
+can be delivered to the
+.Xr powerd 8
+daemon.
+Sensor monitoring can be performed by the
+.Xr sysmon_envsys 9
+framework on a polled basis.
+Alternatively, the sensor's device driver can call the
+.Fn sysmon_envsys_sensor_event
+function to deliver the event without waiting for the device to be polled.
+.Pp
The
.Em sysmon_envsys
structure is defined as follows