9 #define PAGE_SIZE (1 << PAGE_SHIFT)
15 struct list_head list;
17 #define list_to_maps_list(list_head) \
18 container_of((list_head), struct maps_list, list)
22 struct maps_list *ml; /* List to mappings which point to this pfn */
23 unsigned long pfn; /* page frame number */
32 #define tree_to_pageframe(tree_struct) \
33 container_of((tree_struct), struct pageframe, tree)
36 struct list_head list;
38 /* Memory segment of a mapping */
43 long int pages_present;
44 long int pages_swapped;
46 /* Name of the mapping, such as library name or something else */
48 int pid; /* Process which address space the mapping belongs to */
49 int tid; /* thread id */
52 #define list_to_maps(list_head) \
53 container_of((list_head), struct maps, list)
57 struct list_head list;
62 long int pages_present;
63 long int pages_swapped;
67 #define PARSE_MAP_NAME 0x2
68 #define PARSE_PROCESS_NAME 0x4
69 #define PARSE_DUMP 0x8