Disable grid gui module
[qi-bootmenu.git] / fstype / swap_fs.h
blob7b7fddb19afc103be15402fed9d828fad1168cb1
1 #ifndef __LINUX_SWAP_FS_H
2 #define __LINUX_SWAP_FS_H
4 /* The basic structures of the swap super block */
5 #define SWAP_MAGIC_L 10
6 #define SWAP_RESERVED_L (1024 - SWAP_MAGIC_L)
7 #define SWAP_MAGIC_1 "SWAP-SPACE"
8 #define SWAP_MAGIC_2 "SWAPSPACE2"
10 /* Suspend signatures, located at same addr as swap magic */
11 #define SUSP_MAGIC_L 9
12 #define SUSP_MAGIC_1 "S1SUSPEND"
13 #define SUSP_MAGIC_2 "S2SUSPEND"
14 #define SUSP_MAGIC_U "ULSUSPEND"
16 /* The superblock is the last block in the first page */
17 #define SWAP_OFFSET() ((getpagesize() - 1024) >> 10)
19 /* On-disk "super block" */
20 struct swap_super_block {
21 char reserved[SWAP_RESERVED_L];
22 char magic[SWAP_MAGIC_L];
25 #endif