summaryrefslogtreecommitdiff
path: root/share
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2002-10-15 15:29:11 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2002-10-15 15:29:11 +0000
commit3159ef110dd837692199d68a8b6bf34c41cf60c2 (patch)
treeed410822adb9f18ebabd9436ee6ac9f44d92f8b3 /share
parent18fe5f2c1f24846ba8e92ff5f7fd3a1ba0595d73 (diff)
correct powerhook proto and a description for the int why; from grendel@zeitbombe.org
Diffstat (limited to 'share')
-rw-r--r--share/man/man9/powerhook_establish.913
1 files changed, 9 insertions, 4 deletions
diff --git a/share/man/man9/powerhook_establish.9 b/share/man/man9/powerhook_establish.9
index 4a80eac2e0f..6c76afd4371 100644
--- a/share/man/man9/powerhook_establish.9
+++ b/share/man/man9/powerhook_establish.9
@@ -1,4 +1,4 @@
-.\" $OpenBSD: powerhook_establish.9,v 1.2 2000/10/12 18:06:02 aaron Exp $
+.\" $OpenBSD: powerhook_establish.9,v 1.3 2002/10/15 15:29:10 mickey Exp $
.\"
.\" Copyright (c) 2000 Aaron Campbell
.\" All rights reserved.
@@ -38,7 +38,7 @@
.Nd add or remove a power hook
.Sh SYNOPSIS
.Ft void *
-.Fn powerhook_establish "void (*fn)(void *)" "void *arg"
+.Fn powerhook_establish "void (*fn)(int, void *)" "void *arg"
.Ft void
.Fn powerhook_disestablish "void *cookie"
.Sh DESCRIPTION
@@ -58,9 +58,14 @@ or
.Dq resume ) .
When invoked, the hook function
.Fa fn
-will be passed
+will be passed an int
+.Fa why
+and
.Fa arg
-as its only argument.
+as its arguments.
+The int value
+.Fa why
+will be one of PWR_RESUME, PWR_SUSPEND, and PWR_STANDBY.
.Pp
The
.Fn powerhook_disestablish