|
Linux Kernel
3.7.1
|
#include <linux/export.h>#include <linux/suspend.h>#include <linux/syscalls.h>#include <linux/reboot.h>#include <linux/string.h>#include <linux/device.h>#include <linux/async.h>#include <linux/delay.h>#include <linux/fs.h>#include <linux/mount.h>#include <linux/pm.h>#include <linux/console.h>#include <linux/cpu.h>#include <linux/freezer.h>#include <linux/gfp.h>#include <linux/syscore_ops.h>#include <linux/ctype.h>#include <linux/genhd.h>#include "power.h"Go to the source code of this file.
Macros | |
| #define | HIBERNATION_MAX (__HIBERNATION_AFTER_LAST-1) |
| #define | HIBERNATION_FIRST (HIBERNATION_INVALID + 1) |
Enumerations | |
| enum | { HIBERNATION_INVALID, HIBERNATION_PLATFORM, HIBERNATION_SHUTDOWN, HIBERNATION_REBOOT, __HIBERNATION_AFTER_LAST } |
Functions | |
| void | hibernation_set_ops (const struct platform_hibernation_ops *ops) |
| bool | system_entering_hibernation (void) |
| EXPORT_SYMBOL (system_entering_hibernation) | |
| void | swsusp_show_speed (struct timeval *start, struct timeval *stop, unsigned nr_pages, char *msg) |
| int | hibernation_snapshot (int platform_mode) |
| int | hibernation_restore (int platform_mode) |
| int | hibernation_platform_enter (void) |
| int | hibernate (void) |
| late_initcall (software_resume) | |
| power_attr (disk) | |
| power_attr (resume) | |
| power_attr (image_size) | |
| power_attr (reserved_size) | |
| core_initcall (pm_disk_init) | |
| __setup ("noresume", noresume_setup) | |
| __setup ("resume_offset=", resume_offset_setup) | |
| __setup ("resumewait", resumewait_setup) | |
Variables | |
| dev_t | swsusp_resume_device |
| sector_t | swsusp_resume_block |
| int in_suspend | __nosavedata |
| bool | freezer_test_done |
| #define HIBERNATION_FIRST (HIBERNATION_INVALID + 1) |
Definition at line 56 of file hibernate.c.
| #define HIBERNATION_MAX (__HIBERNATION_AFTER_LAST-1) |
Definition at line 55 of file hibernate.c.
| anonymous enum |
| HIBERNATION_INVALID | |
| HIBERNATION_PLATFORM | |
| HIBERNATION_SHUTDOWN | |
| HIBERNATION_REBOOT | |
| __HIBERNATION_AFTER_LAST |
Definition at line 44 of file hibernate.c.
| __setup | ( | "noresume" | , |
| noresume_setup | |||
| ) |
| __setup | ( | ) |
| __setup | ( | "resumewait" | , |
| resumewait_setup | |||
| ) |
| core_initcall | ( | pm_disk_init | ) |
| EXPORT_SYMBOL | ( | system_entering_hibernation | ) |
hibernate - Carry out system hibernation, including saving the image.
Definition at line 631 of file hibernate.c.
hibernation_platform_enter - Power off the system using the platform driver.
Definition at line 506 of file hibernate.c.
hibernation_restore - Quiesce devices and restore from a hibernation image. : If set, use platform driver to prepare for the transition.
This routine must be called with pm_mutex held. If it is successful, control reappears in the restored target kernel in hibernation_snapshot().
Definition at line 483 of file hibernate.c.
| void hibernation_set_ops | ( | const struct platform_hibernation_ops * | ops | ) |
hibernation_set_ops - Set the global hibernate operations. : Hibernation operations to use in subsequent hibernation transitions.
Definition at line 68 of file hibernate.c.
hibernation_snapshot - Quiesce devices and create a hibernation image. : If set, use platform driver to prepare for the transition.
This routine must be called with pm_mutex held.
Definition at line 325 of file hibernate.c.
| late_initcall | ( | software_resume | ) |
| power_attr | ( | disk | ) |
| power_attr | ( | resume | ) |
| power_attr | ( | image_size | ) |
| power_attr | ( | reserved_size | ) |
| void swsusp_show_speed | ( | struct timeval * | start, |
| struct timeval * | stop, | ||
| unsigned | nr_pages, | ||
| char * | msg | ||
| ) |
swsusp_show_speed - Print time elapsed between two events during hibernation. : Starting event. : Final event. : Number of memory pages processed between and . : Additional diagnostic message to print.
Definition at line 227 of file hibernate.c.
Definition at line 88 of file hibernate.c.
| int in_suspend __nosavedata |
Definition at line 42 of file hibernate.c.
| bool freezer_test_done |
Definition at line 60 of file hibernate.c.
| sector_t swsusp_resume_block |
Definition at line 41 of file hibernate.c.
| dev_t swsusp_resume_device |
Definition at line 40 of file hibernate.c.
1.8.2