Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/share/man/man9 Document the new sysmon_envsys_sensor_event()...
details: https://anonhg.NetBSD.org/src/rev/b621003833b0
branches: trunk
changeset: 753165:b621003833b0
user: pgoyette <pgoyette%NetBSD.org@localhost>
date: Fri Mar 19 02:20:44 2010 +0000
description:
Document the new sysmon_envsys_sensor_event() function.
diffstat:
share/man/man9/sysmon_envsys.9 | 15 ++++++++++++++-
1 files changed, 14 insertions(+), 1 deletions(-)
diffs (36 lines):
diff -r 6ac95eda8fb5 -r b621003833b0 share/man/man9/sysmon_envsys.9
--- a/share/man/man9/sysmon_envsys.9 Fri Mar 19 02:19:13 2010 +0000
+++ b/share/man/man9/sysmon_envsys.9 Fri Mar 19 02:20:44 2010 +0000
@@ -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
Home |
Main Index |
Thread Index |
Old Index