summaryrefslogtreecommitdiff
path: root/share/man/man9
diff options
context:
space:
mode:
authorKenneth R Westerback <krw@cvs.openbsd.org>2009-01-17 18:02:30 +0000
committerKenneth R Westerback <krw@cvs.openbsd.org>2009-01-17 18:02:30 +0000
commitc99d8ec984e7e4d9073500e9c54feedce4c513f1 (patch)
tree3f50074551b9930bec1e66f7e927db4b7c0a310d /share/man/man9
parent9937f305311544c3b90c189b9e0fb999ba717306 (diff)
Mention acpi(4) can also call dopowerhooks(). Tweak verbiage a bit.
ok jmc@
Diffstat (limited to 'share/man/man9')
-rw-r--r--share/man/man9/dopowerhooks.918
1 files changed, 10 insertions, 8 deletions
diff --git a/share/man/man9/dopowerhooks.9 b/share/man/man9/dopowerhooks.9
index 26fb584f18d..9234a9ce9d1 100644
--- a/share/man/man9/dopowerhooks.9
+++ b/share/man/man9/dopowerhooks.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: dopowerhooks.9,v 1.5 2007/05/31 19:20:00 jmc Exp $
+.\" $OpenBSD: dopowerhooks.9,v 1.6 2009/01/17 18:02:29 krw Exp $
.\"
.\" Copyright (c) 2000 Aaron Campbell
.\" All rights reserved.
@@ -25,7 +25,7 @@
.\" (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
.\" THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
.\"
-.Dd $Mdocdate: May 31 2007 $
+.Dd $Mdocdate: January 17 2009 $
.Dt DOPOWERHOOKS 9
.Os
.Sh NAME
@@ -37,11 +37,9 @@
.Ft void
.Fn dopowerhooks "int why"
.Sh DESCRIPTION
-The
.Fn dopowerhooks
-function invokes all power hooks established using the
-.Xr powerhook_establish 9
-function.
+calls all power hooks that have been established using
+.Xr powerhook_establish 9 .
At
.Dq suspend
and
@@ -53,9 +51,12 @@ At
time, power hooks are called in order, i.e., the power hook
established first will be called first.
.Pp
-This routine is called from the
+.Fn dopowerhooks
+is invoked by
+.Xr acpi 4
+or
.Xr apm 4
-driver when a power change is detected.
+when a power state change is detected.
The
.Fa why
argument is one of
@@ -67,5 +68,6 @@ describing the reason for the change in power state.
Each established power hook is passed this information so the appropriate
actions can be taken.
.Sh SEE ALSO
+.Xr acpi 4 ,
.Xr apm 4 ,
.Xr powerhook_establish 9