Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Fields
platform_hibernation_ops Struct Reference

#include <suspend.h>

Data Fields

int(* begin )(void)
 
void(* end )(void)
 
int(* pre_snapshot )(void)
 
void(* finish )(void)
 
int(* prepare )(void)
 
int(* enter )(void)
 
void(* leave )(void)
 
int(* pre_restore )(void)
 
void(* restore_cleanup )(void)
 
void(* recover )(void)
 

Detailed Description

struct platform_hibernation_ops - hibernation platform support

The methods in this structure allow a platform to carry out special operations required by it during a hibernation transition.

All the methods below, except for (), must be implemented.

: Tell the platform driver that we're starting hibernation. Called right after shrinking memory and before freezing devices.

: Called by the PM core right after resuming devices, to indicate to the platform that the system has returned to the working state.

: Prepare the platform for creating the hibernation image. Called right after devices have been frozen and before the nonboot CPUs are disabled (runs with IRQs on).

: Restore the previous state of the platform after the hibernation image has been created or put the platform into the normal operation mode after the hibernation (the same method is executed in both cases). Called right after the nonboot CPUs have been enabled and before thawing devices (runs with IRQs on).

: Prepare the platform for entering the low power state. Called right after the hibernation image has been saved and before devices are prepared for entering the low power state.

: Put the system into the low power state after the hibernation image has been saved to disk. Called after the nonboot CPUs have been disabled and all of the low level devices have been shut down (runs with IRQs off).

: Perform the first stage of the cleanup after the system sleep state indicated by () has been left. Called right after the control has been passed from the boot kernel to the image kernel, before the nonboot CPUs are enabled and before devices are resumed. Executed with interrupts disabled.

: Prepare system for the restoration from a hibernation image. Called right after devices have been frozen and before the nonboot CPUs are disabled (runs with IRQs on).

: Clean up after a failing image restoration. Called right after the nonboot CPUs have been enabled and before thawing devices (runs with IRQs on).

: Recover the platform from a failure to suspend devices. Called by the PM core if the suspending of devices during hibernation fails. This callback is optional and should only be implemented by platforms which require special recovery actions in that situation.

Definition at line 287 of file suspend.h.

Field Documentation

int(* begin)(void)

Definition at line 288 of file suspend.h.

void(* end)(void)

Definition at line 289 of file suspend.h.

int(* enter)(void)

Definition at line 293 of file suspend.h.

void(* finish)(void)

Definition at line 291 of file suspend.h.

void(* leave)(void)

Definition at line 294 of file suspend.h.

int(* pre_restore)(void)

Definition at line 295 of file suspend.h.

int(* pre_snapshot)(void)

Definition at line 290 of file suspend.h.

int(* prepare)(void)

Definition at line 292 of file suspend.h.

void(* recover)(void)

Definition at line 297 of file suspend.h.

void(* restore_cleanup)(void)

Definition at line 296 of file suspend.h.


The documentation for this struct was generated from the following file: