MOS Source Code
|
#include "mos/misc/power.h"
#include "mos/mm/slab.h"
#include "mos/mm/slab_autoinit.h"
#include "mos/platform/platform.h"
#include "mos/syslog/printk.h"
#include <mos/lib/structures/list.h>
#include <mos_stdlib.h>
Go to the source code of this file.
Classes | |
struct | power_callback_entry_t |
Functions | |
SLAB_AUTOINIT ("power_callback", power_callback_cache, power_callback_entry_t) | |
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 = LIST_HEAD_INIT(pm_notifiers) |
static slab_t * | power_callback_cache = NULL |
SLAB_AUTOINIT | ( | "power_callback" | , |
power_callback_cache | , | ||
power_callback_entry_t | ) |
void power_register_shutdown_callback | ( | power_callback_t | callback, |
void * | data ) |
Shutdown the system.
Definition at line 33 of file power.c.
Referenced by MOS_STATIC_ASSERT(), and try_handle_kernel_panics_at().
|
static |
Definition at line 20 of file power.c.
Referenced by power_register_shutdown_callback(), and power_shutdown().
Definition at line 21 of file power.c.
Referenced by power_register_shutdown_callback().