Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions | Variables
suspend.c File Reference
#include <linux/string.h>
#include <linux/delay.h>
#include <linux/errno.h>
#include <linux/init.h>
#include <linux/console.h>
#include <linux/cpu.h>
#include <linux/syscalls.h>
#include <linux/gfp.h>
#include <linux/io.h>
#include <linux/kernel.h>
#include <linux/list.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/export.h>
#include <linux/suspend.h>
#include <linux/syscore_ops.h>
#include <linux/ftrace.h>
#include <trace/events/power.h>
#include "power.h"

Go to the source code of this file.

Functions

void suspend_set_ops (const struct platform_suspend_ops *ops)
 
 EXPORT_SYMBOL_GPL (suspend_set_ops)
 
bool valid_state (suspend_state_t state)
 
int suspend_valid_only_mem (suspend_state_t state)
 
 EXPORT_SYMBOL_GPL (suspend_valid_only_mem)
 
void __attribute__ ((weak))
 
int suspend_devices_and_enter (suspend_state_t state)
 
int pm_suspend (suspend_state_t state)
 
 EXPORT_SYMBOL (pm_suspend)
 

Variables

const char *const pm_states [PM_SUSPEND_MAX]
 

Function Documentation

void __attribute__ ( (weak)  )
read

Definition at line 118 of file suspend.c.

EXPORT_SYMBOL ( pm_suspend  )
EXPORT_SYMBOL_GPL ( suspend_set_ops  )
EXPORT_SYMBOL_GPL ( suspend_valid_only_mem  )
int pm_suspend ( suspend_state_t  state)

pm_suspend - Externally visible function for suspending the system. : System sleep state to enter.

Check if the value of represents one of the supported states, execute enter_state() and update system suspend statistics.

Definition at line 313 of file suspend.c.

int suspend_devices_and_enter ( suspend_state_t  state)

suspend_devices_and_enter - Suspend devices and enter system sleep state. : System sleep state to enter.

Definition at line 201 of file suspend.c.

void suspend_set_ops ( const struct platform_suspend_ops ops)

suspend_set_ops - Set the global suspend method table. : Suspend operations to use.

Definition at line 43 of file suspend.c.

int suspend_valid_only_mem ( suspend_state_t  state)

suspend_valid_only_mem - Generic memory-only valid callback.

Platform drivers that implement mem suspend only and only need to check for that in their .valid() callback can use this instead of rolling their own .valid() callback.

Definition at line 67 of file suspend.c.

bool valid_state ( suspend_state_t  state)

Definition at line 51 of file suspend.c.

Variable Documentation

Initial value:
= {
[PM_SUSPEND_STANDBY] = "standby",
[PM_SUSPEND_MEM] = "mem",
}

Definition at line 32 of file suspend.c.