dopowerhooks - run all power hooks
The dopowerhooks() function invokes all power hooks established using the
powerhook_establish(9) function. At ``suspend'' and
power hooks are called in reverse order, i.e., the power
last will be called first. At ``resume'' time, power hooks
are called in
order, i.e., the power hook established first will be called
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
established power hook is passed this information so the appropriate actions
can be taken.
OpenBSD 3.6 July 1, 2000
[ Back ]