dopowerhooks man page on MirBSD

Man page or keyword search:  
man Server   6113 pages
apropos Keyword Search (all sections)
Output format
MirBSD logo
[printable version]

DOPOWERHOOKS(9)		      BSD Kernel Manual		       DOPOWERHOOKS(9)

NAME
     dopowerhooks - run all power hooks

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

     void
     dopowerhooks(int why);

DESCRIPTION
     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 es-
     tablished power hook is passed this information so the appropriate ac-
     tions can be taken.

SEE ALSO
     apm(4), powerhook_establish(9)

MirOS BSD #10-current		 July 1, 2000				     1
[top]

List of man pages available for MirBSD

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net