*nix Documentation Project
·  Home
 +   man pages
·  Linux HOWTOs
·  FreeBSD Tips
·  *niX Forums

  man pages->OpenBSD man pages -> dopowerhooks (9)              
Title
Content
Arch
Section
 

DOPOWERHOOKS(9)

Contents


NAME    [Toc]    [Back]

     dopowerhooks - run all power hooks

SYNOPSIS    [Toc]    [Back]

     #include <sys/types.h>
     #include <sys/systm.h>

     void
     dopowerhooks(int why);

DESCRIPTION    [Toc]    [Back]

     The dopowerhooks() function invokes all power  hooks  established using the
     powerhook_establish(9)   function.    At   ``suspend''   and
``standby'' time,
     power hooks are called in reverse  order,  i.e.,  the  power
hook established
     last  will be called first.  At ``resume'' time, power hooks
are called in
     order, i.e., the power hook established first will be called
first.

     This  routine  is called from the apm(4) driver when a power
change is detected.
  The why argument is one of PWR_SUSPEND,  PWR_STANDBY, or
     PWR_RESUME,  describing  the  reason for the change in power
state.  Each
     established power hook is passed this information so the appropriate actions
 can be taken.

SEE ALSO    [Toc]    [Back]

      
      
     apm(4), powerhook_establish(9)

OpenBSD      3.6                           July      1,      2000
[ Back ]
 Similar pages
Name OS Title
power_onoff HP-UX timed, automatic system power on, and power off
power OpenBSD power button and power fail support
dostartuphooks OpenBSD run all startup hooks
doshutdownhooks OpenBSD run all shutdown hooks
dohooks OpenBSD run all hooks in a list
doshutdownhooks NetBSD run all shutdown hooks
res_send_setqhook IRIX interface to resolver hooks
slocal Tru64 MH receive-mail hooks
set_menu_term FreeBSD set hooks for automatic invocation by applications
set_menu_init FreeBSD set hooks for automatic invocation by applications
Copyright © 2004-2005 DeniX Solutions SRL
newsletter delivery service