FreeBSD kernel kern code
|
#include <sys/cdefs.h>
#include <sys/param.h>
#include <sys/systm.h>
#include <sys/proc.h>
#include <sys/power.h>
#include <sys/taskqueue.h>
Go to the source code of this file.
Functions | |
__FBSDID ("$BSDSUniX$") | |
static void | power_pm_deferred_fn (void *arg, int pending) |
int | power_pm_register (u_int pm_type, power_pm_fn_t pm_fn, void *pm_arg) |
u_int | power_pm_get_type (void) |
void | power_pm_suspend (int state) |
int | power_profile_get_state (void) |
void | power_profile_set_state (int state) |
Variables | |
static u_int | power_pm_type = POWER_PM_TYPE_NONE |
static power_pm_fn_t | power_pm_fn = NULL |
static void * | power_pm_arg = NULL |
static struct task | power_pm_task |
static int | power_profile_state = POWER_PROFILE_PERFORMANCE |
__FBSDID | ( | "$BSDSUniX$" | ) |
|
static |
Definition at line 43 of file subr_power.c.
References power_pm_arg, and power_pm_fn.
Referenced by power_pm_register().
u_int power_pm_get_type | ( | void | ) |
Definition at line 70 of file subr_power.c.
References power_pm_type.
int power_pm_register | ( | u_int | pm_type, |
power_pm_fn_t | pm_fn, | ||
void * | pm_arg | ||
) |
Definition at line 51 of file subr_power.c.
References power_pm_arg, power_pm_deferred_fn(), power_pm_fn, power_pm_task, and power_pm_type.
void power_pm_suspend | ( | int | state | ) |
Definition at line 77 of file subr_power.c.
References power_pm_fn, power_pm_task, and taskqueue_enqueue().
int power_profile_get_state | ( | void | ) |
Definition at line 97 of file subr_power.c.
References power_profile_state.
void power_profile_set_state | ( | int | state | ) |
Definition at line 103 of file subr_power.c.
References bootverbose, power_profile_state, and printf().
|
static |
Definition at line 39 of file subr_power.c.
Referenced by power_pm_deferred_fn(), and power_pm_register().
|
static |
Definition at line 38 of file subr_power.c.
Referenced by power_pm_deferred_fn(), power_pm_register(), and power_pm_suspend().
|
static |
Definition at line 40 of file subr_power.c.
Referenced by power_pm_register(), and power_pm_suspend().
|
static |
Definition at line 37 of file subr_power.c.
Referenced by power_pm_get_type(), and power_pm_register().
|
static |
Definition at line 94 of file subr_power.c.
Referenced by power_profile_get_state(), and power_profile_set_state().