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

#include <power.h>

Data Fields

unsigned int cur
 
voidbuffer
 
int sync_read
 

Detailed Description

Auxiliary structure used for reading the snapshot image data and metadata from and writing them to the list of page backup entries (PBEs) which is the main data structure of swsusp.

Using struct snapshot_handle we can transfer the image, including its metadata, as a continuous sequence of bytes with the help of snapshot_read_next() and snapshot_write_next().

The code that writes the image to a storage or transfers it to the user land is required to use snapshot_read_next() for this purpose and it should not make any assumptions regarding the internal structure of the image. Similarly, the code that reads the image from a storage or transfers it from the user land is required to use snapshot_write_next().

This may allow us to change the internal structure of the image in the future with considerably less effort.

Definition at line 112 of file power.h.

Field Documentation

Definition at line 116 of file power.h.

unsigned int cur

Definition at line 113 of file power.h.

int sync_read

Definition at line 119 of file power.h.


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