MirOS Manual: dopowerhooks(9)

DOPOWERHOOKS(9)               BSD Kernel Manual                DOPOWERHOOKS(9)


     dopowerhooks - run all power hooks


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

     dopowerhooks(int why);


     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.


     apm(4), powerhook_establish(9)

MirOS BSD #10-current            July 1, 2000                                1

Generated on 2015-10-25 00:47:46 by $MirOS: src/scripts/roff2htm,v 1.81 2015/10/16 13:19:09 tg Exp $

These manual pages and other documentation are copyrighted by their respective writers; their source is available at our CVSweb, AnonCVS, and other mirrors. The rest is Copyright © 2002–2015 The MirOS Project, Germany.
This product includes material provided by mirabilos.

This manual page’s HTML representation is supposed to be valid XHTML/1.1; if not, please send a bug report – diffs preferred.