MOS Source Code
Loading...
Searching...
No Matches
power.cpp File Reference
+ Include dependency graph for power.cpp:

Go to the source code of this file.

Classes

struct  power_callback_entry_t
 

Functions

void power_register_shutdown_callback (power_callback_t callback, void *data)
 Register a callback to be called when the system is about to shut down.
 
void power_shutdown (void)
 Shutdown the system.
 

Variables

static list_head pm_notifiers
 

Function Documentation

◆ power_register_shutdown_callback()

void power_register_shutdown_callback ( power_callback_t callback,
void * data )

Register a callback to be called when the system is about to shut down.

Parameters
callbackThe callback to be called.
dataThe data to be passed to the callback.

Definition at line 21 of file power.cpp.

+ Here is the call graph for this function:

◆ power_shutdown()

void power_shutdown ( void )

Shutdown the system.

Definition at line 30 of file power.cpp.

Referenced by MOS_STATIC_ASSERT(), and try_handle_kernel_panics_at().

+ Here is the call graph for this function:

Variable Documentation

◆ pm_notifiers

list_head pm_notifiers
static

Definition at line 19 of file power.cpp.

Referenced by power_register_shutdown_callback(), and power_shutdown().