![]() |
MOS Source Code
|
#include "mos/misc/power.hpp"
#include "mos/platform/platform.hpp"
#include "mos/syslog/printk.hpp"
#include <mos/allocator.hpp>
#include <mos/lib/structures/list.hpp>
#include <mos_stdlib.hpp>
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 |
void power_register_shutdown_callback | ( | power_callback_t | callback, |
void * | data ) |
Shutdown the system.
Definition at line 30 of file power.cpp.
Referenced by MOS_STATIC_ASSERT(), and try_handle_kernel_panics_at().
|
static |
Definition at line 19 of file power.cpp.
Referenced by power_register_shutdown_callback(), and power_shutdown().