From 3159ef110dd837692199d68a8b6bf34c41cf60c2 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Tue, 15 Oct 2002 15:29:11 +0000 Subject: correct powerhook proto and a description for the int why; from grendel@zeitbombe.org --- share/man/man9/powerhook_establish.9 | 13 +++++++++---- 1 file 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 -- cgit v1.2.3