Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
swap.h File Reference
#include <linux/spinlock.h>
#include <linux/linkage.h>
#include <linux/mmzone.h>
#include <linux/list.h>
#include <linux/memcontrol.h>
#include <linux/sched.h>
#include <linux/node.h>
#include <linux/atomic.h>
#include <asm/page.h>

Go to the source code of this file.

Data Structures

union  swap_header
 
struct  swp_entry_t
 
struct  reclaim_state
 

Macros

#define SWAP_FLAG_PREFER   0x8000 /* set if swap priority specified */
 
#define SWAP_FLAG_PRIO_MASK   0x7fff
 
#define SWAP_FLAG_PRIO_SHIFT   0
 
#define SWAP_FLAG_DISCARD   0x10000 /* discard swap cluster after use */
 
#define SWAP_FLAGS_VALID
 
#define MAX_SWAPFILES_SHIFT   5
 
#define SWP_MIGRATION_NUM   0
 
#define SWP_HWPOISON_NUM   0
 
#define MAX_SWAPFILES   ((1 << MAX_SWAPFILES_SHIFT) - SWP_MIGRATION_NUM - SWP_HWPOISON_NUM)
 

Macro Definition Documentation

#define MAX_SWAPFILES   ((1 << MAX_SWAPFILES_SHIFT) - SWP_MIGRATION_NUM - SWP_HWPOISON_NUM)

Definition at line 69 of file swap.h.

#define MAX_SWAPFILES_SHIFT   5

Definition at line 40 of file swap.h.

#define SWAP_FLAG_DISCARD   0x10000 /* discard swap cluster after use */

Definition at line 22 of file swap.h.

#define SWAP_FLAG_PREFER   0x8000 /* set if swap priority specified */

Definition at line 19 of file swap.h.

#define SWAP_FLAG_PRIO_MASK   0x7fff

Definition at line 20 of file swap.h.

#define SWAP_FLAG_PRIO_SHIFT   0

Definition at line 21 of file swap.h.

#define SWAP_FLAGS_VALID
Value:
SWAP_FLAG_DISCARD)

Definition at line 24 of file swap.h.

#define SWP_HWPOISON_NUM   0

Definition at line 66 of file swap.h.

#define SWP_MIGRATION_NUM   0

Definition at line 56 of file swap.h.