Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Typedefs | Enumerations | Functions | Variables
suspend.h File Reference
#include <linux/swap.h>
#include <linux/notifier.h>
#include <linux/init.h>
#include <linux/pm.h>
#include <linux/mm.h>
#include <linux/freezer.h>
#include <asm/errno.h>

Go to the source code of this file.

Data Structures

struct  suspend_stats
 
struct  platform_suspend_ops
 
struct  pbe
 
struct  platform_hibernation_ops
 

Macros

#define PM_SUSPEND_ON   ((__force suspend_state_t) 0)
 
#define PM_SUSPEND_STANDBY   ((__force suspend_state_t) 1)
 
#define PM_SUSPEND_MEM   ((__force suspend_state_t) 3)
 
#define PM_SUSPEND_MAX   ((__force suspend_state_t) 4)
 
#define REC_FAILED_NUM   2
 
#define suspend_valid_only_mem   NULL
 
#define PM_HIBERNATION_PREPARE   0x0001 /* Going to hibernate */
 
#define PM_POST_HIBERNATION   0x0002 /* Hibernation finished */
 
#define PM_SUSPEND_PREPARE   0x0003 /* Going to suspend the system */
 
#define PM_POST_SUSPEND   0x0004 /* Suspend finished */
 
#define PM_RESTORE_PREPARE   0x0005 /* Going to restore a saved image */
 
#define PM_POST_RESTORE   0x0006 /* Restore failed */
 
#define pm_notifier(fn, pri)   do { (void)(fn); } while (0)
 
#define pm_print_times_enabled   (false)
 

Typedefs

typedef int __bitwise suspend_state_t
 

Enumerations

enum  suspend_stat_step {
  SUSPEND_FREEZE = 1, SUSPEND_PREPARE, SUSPEND_SUSPEND, SUSPEND_SUSPEND_LATE,
  SUSPEND_SUSPEND_NOIRQ, SUSPEND_RESUME_NOIRQ, SUSPEND_RESUME_EARLY, SUSPEND_RESUME
}
 

Functions

void mark_free_pages (struct zone *zone)
 

Variables

struct suspend_stats suspend_stats
 
struct mutex pm_mutex
 

Macro Definition Documentation

#define PM_HIBERNATION_PREPARE   0x0001 /* Going to hibernate */

Definition at line 332 of file suspend.h.

#define pm_notifier (   fn,
  pri 
)    do { (void)(fn); } while (0)

Definition at line 402 of file suspend.h.

#define PM_POST_HIBERNATION   0x0002 /* Hibernation finished */

Definition at line 333 of file suspend.h.

#define PM_POST_RESTORE   0x0006 /* Restore failed */

Definition at line 337 of file suspend.h.

#define PM_POST_SUSPEND   0x0004 /* Suspend finished */

Definition at line 335 of file suspend.h.

#define pm_print_times_enabled   (false)

Definition at line 414 of file suspend.h.

#define PM_RESTORE_PREPARE   0x0005 /* Going to restore a saved image */

Definition at line 336 of file suspend.h.

#define PM_SUSPEND_MAX   ((__force suspend_state_t) 4)

Definition at line 39 of file suspend.h.

#define PM_SUSPEND_MEM   ((__force suspend_state_t) 3)

Definition at line 38 of file suspend.h.

#define PM_SUSPEND_ON   ((__force suspend_state_t) 0)

Definition at line 36 of file suspend.h.

#define PM_SUSPEND_PREPARE   0x0003 /* Going to suspend the system */

Definition at line 334 of file suspend.h.

#define PM_SUSPEND_STANDBY   ((__force suspend_state_t) 1)

Definition at line 37 of file suspend.h.

#define REC_FAILED_NUM   2

Definition at line 63 of file suspend.h.

#define suspend_valid_only_mem   NULL

Definition at line 216 of file suspend.h.

Typedef Documentation

Definition at line 34 of file suspend.h.

Enumeration Type Documentation

Enumerator:
SUSPEND_FREEZE 
SUSPEND_PREPARE 
SUSPEND_SUSPEND 
SUSPEND_SUSPEND_LATE 
SUSPEND_SUSPEND_NOIRQ 
SUSPEND_RESUME_NOIRQ 
SUSPEND_RESUME_EARLY 
SUSPEND_RESUME 

Definition at line 41 of file suspend.h.

Function Documentation

void mark_free_pages ( struct zone zone)

Variable Documentation

struct mutex pm_mutex

Definition at line 53 of file main.c.