/D/werner/TxMemory/sources/pagemap.h File Reference

#include <stdint.h>
Include dependency graph for pagemap.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define PM_ENTRY_BYTES   sizeof(uint64_t)
#define PM_STATUS_BITS   3
#define PM_STATUS_OFFSET   (64 - PM_STATUS_BITS)
#define PM_STATUS_MASK   (((1LL << PM_STATUS_BITS) - 1) << PM_STATUS_OFFSET)
#define PM_STATUS(nr)   (((nr) << PM_STATUS_OFFSET) & PM_STATUS_MASK)
#define PM_PSHIFT_BITS   6
#define PM_PSHIFT_OFFSET   (PM_STATUS_OFFSET - PM_PSHIFT_BITS)
#define PM_PSHIFT_MASK   (((1LL << PM_PSHIFT_BITS) - 1) << PM_PSHIFT_OFFSET)
#define PM_PSHIFT(x)   (((uint64_t) (x) << PM_PSHIFT_OFFSET) & PM_PSHIFT_MASK)
#define PM_PFRAME_MASK   ((1LL << PM_PSHIFT_OFFSET) - 1)
#define PM_PFRAME(x)   ((x) & PM_PFRAME_MASK)
#define PM_PRESENT   PM_STATUS(4LL)
#define PM_SWAP   PM_STATUS(2LL)
#define KPF_LOCKED   0
#define KPF_ERROR   1
#define KPF_REFERENCED   2
#define KPF_UPTODATE   3
#define KPF_DIRTY   4
#define KPF_LRU   5
#define KPF_ACTIVE   6
#define KPF_SLAB   7
#define KPF_WRITEBACK   8
#define KPF_RECLAIM   9
#define KPF_BUDDY   10
#define KPF_MMAP   11
#define KPF_ANON   12
#define KPF_SWAPCACHE   13
#define KPF_SWAPBACKED   14
#define KPF_COMPOUND_HEAD   15
#define KPF_COMPOUND_TAIL   16
#define KPF_HUGE   17
#define KPF_UNEVICTABLE   18
#define KPF_HWPOISON   19
#define KPF_NOPAGE   20
#define KPF_KSM   21
#define KPF_RESERVED   32
#define KPF_MLOCKED   33
#define KPF_MAPPEDTODISK   34
#define KPF_PRIVATE   35
#define KPF_PRIVATE_2   36
#define KPF_OWNER_PRIVATE   37
#define KPF_ARCH   38
#define KPF_UNCACHED   39
#define KPF_READAHEAD   48
#define KPF_SLOB_FREE   49
#define KPF_SLUB_FROZEN   50
#define KPF_SLUB_DEBUG   51

Define Documentation

#define KPF_ACTIVE   6

Definition at line 51 of file pagemap.h.

#define KPF_ANON   12

Definition at line 59 of file pagemap.h.

#define KPF_ARCH   38

Definition at line 77 of file pagemap.h.

#define KPF_BUDDY   10

Definition at line 55 of file pagemap.h.

#define KPF_COMPOUND_HEAD   15

Definition at line 62 of file pagemap.h.

#define KPF_COMPOUND_TAIL   16

Definition at line 63 of file pagemap.h.

#define KPF_DIRTY   4

Definition at line 49 of file pagemap.h.

#define KPF_ERROR   1

Definition at line 46 of file pagemap.h.

#define KPF_HUGE   17

Definition at line 64 of file pagemap.h.

#define KPF_HWPOISON   19

Definition at line 66 of file pagemap.h.

#define KPF_KSM   21

Definition at line 68 of file pagemap.h.

#define KPF_LOCKED   0

Definition at line 45 of file pagemap.h.

#define KPF_LRU   5

Definition at line 50 of file pagemap.h.

#define KPF_MAPPEDTODISK   34

Definition at line 73 of file pagemap.h.

#define KPF_MLOCKED   33

Definition at line 72 of file pagemap.h.

#define KPF_MMAP   11

Definition at line 58 of file pagemap.h.

#define KPF_NOPAGE   20

Definition at line 67 of file pagemap.h.

#define KPF_OWNER_PRIVATE   37

Definition at line 76 of file pagemap.h.

#define KPF_PRIVATE   35

Definition at line 74 of file pagemap.h.

#define KPF_PRIVATE_2   36

Definition at line 75 of file pagemap.h.

#define KPF_READAHEAD   48

Definition at line 83 of file pagemap.h.

#define KPF_RECLAIM   9

Definition at line 54 of file pagemap.h.

#define KPF_REFERENCED   2

Definition at line 47 of file pagemap.h.

#define KPF_RESERVED   32

Definition at line 71 of file pagemap.h.

#define KPF_SLAB   7

Definition at line 52 of file pagemap.h.

#define KPF_SLOB_FREE   49

Definition at line 84 of file pagemap.h.

#define KPF_SLUB_DEBUG   51

Definition at line 86 of file pagemap.h.

#define KPF_SLUB_FROZEN   50

Definition at line 85 of file pagemap.h.

#define KPF_SWAPBACKED   14

Definition at line 61 of file pagemap.h.

#define KPF_SWAPCACHE   13

Definition at line 60 of file pagemap.h.

#define KPF_UNCACHED   39

Definition at line 78 of file pagemap.h.

#define KPF_UNEVICTABLE   18

Definition at line 65 of file pagemap.h.

#define KPF_UPTODATE   3

Definition at line 48 of file pagemap.h.

#define KPF_WRITEBACK   8

Definition at line 53 of file pagemap.h.

#define PM_ENTRY_BYTES   sizeof(uint64_t)

Definition at line 29 of file pagemap.h.

#define PM_PFRAME (  )     ((x) & PM_PFRAME_MASK)

Definition at line 39 of file pagemap.h.

#define PM_PFRAME_MASK   ((1LL << PM_PSHIFT_OFFSET) - 1)

Definition at line 38 of file pagemap.h.

#define PM_PRESENT   PM_STATUS(4LL)

Definition at line 41 of file pagemap.h.

#define PM_PSHIFT (  )     (((uint64_t) (x) << PM_PSHIFT_OFFSET) & PM_PSHIFT_MASK)

Definition at line 37 of file pagemap.h.

#define PM_PSHIFT_BITS   6

Definition at line 34 of file pagemap.h.

#define PM_PSHIFT_MASK   (((1LL << PM_PSHIFT_BITS) - 1) << PM_PSHIFT_OFFSET)

Definition at line 36 of file pagemap.h.

#define PM_PSHIFT_OFFSET   (PM_STATUS_OFFSET - PM_PSHIFT_BITS)

Definition at line 35 of file pagemap.h.

#define PM_STATUS ( nr   )     (((nr) << PM_STATUS_OFFSET) & PM_STATUS_MASK)

Definition at line 33 of file pagemap.h.

#define PM_STATUS_BITS   3

Definition at line 30 of file pagemap.h.

#define PM_STATUS_MASK   (((1LL << PM_STATUS_BITS) - 1) << PM_STATUS_OFFSET)

Definition at line 32 of file pagemap.h.

#define PM_STATUS_OFFSET   (64 - PM_STATUS_BITS)

Definition at line 31 of file pagemap.h.

#define PM_SWAP   PM_STATUS(2LL)

Definition at line 42 of file pagemap.h.


Generated by  doxygen 1.6.2