35 pr_info(
"system shutdown initiated");
bool callback(pb_istream_t *stream, uint8_t *buf, size_t count)
MOSAPI void linked_list_init(list_node_t *head_node)
Initialise a circular double linked list.
#define LIST_HEAD_INIT(container)
MOSAPI void list_node_append(list_node_t *head, list_node_t *item)
#define list_foreach(t, v, h)
Iterate over a list.
#define list_node(element)
Get the ‘list_node’ of a list element. This is exactly the reverse of ‘list_entry’ above.
list_node_t list_head
A linked list head.
#define list_remove(element)
static slab_t * power_callback_cache
static list_head pm_notifiers
void power_shutdown(void)
Shutdown the system.
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_callback_t)(void *data)
#define SLAB_AUTOINIT(name, var, type)
power_callback_t callback