MentOS  0.8.0
The Mentoring Operating System
gfp.h
Go to the documentation of this file.
1 
6 #pragma once
7 
9 typedef unsigned int gfp_t;
10 
14 
18 
19 #define ___GFP_DMA 0x001U
20 #define ___GFP_HIGHMEM 0x002U
21 #define ___GFP_DMA32 0x004U
22 #define ___GFP_RECLAIMABLE 0x010U
23 #define ___GFP_HIGH 0x020U
24 #define ___GFP_IO 0x040U
25 #define ___GFP_FS 0x080U
26 #define ___GFP_ZERO 0x100U
27 #define ___GFP_ATOMIC 0x200U
28 #define ___GFP_DIRECT_RECLAIM 0x400U
29 #define ___GFP_KSWAPD_RECLAIM 0x800U
30 
32 
40 
41 #define __GFP_DMA ___GFP_DMA
42 #define __GFP_HIGHMEM ___GFP_HIGHMEM
43 #define __GFP_DMA32 ___GFP_DMA32
45 #define GFP_ZONEMASK (__GFP_DMA | __GFP_HIGHMEM | __GFP_DMA32)
46 
48 
52 
56 #define __GFP_ATOMIC ___GFP_ATOMIC
57 
61 #define __GFP_HIGH ___GFP_HIGH
62 
64 
68 
70 #define __GFP_IO ___GFP_IO
71 
75 #define __GFP_FS ___GFP_FS
76 
80 #define __GFP_DIRECT_RECLAIM ___GFP_DIRECT_RECLAIM
81 
88 #define __GFP_KSWAPD_RECLAIM ___GFP_KSWAPD_RECLAIM
89 
91 #define __GFP_RECLAIM (___GFP_DIRECT_RECLAIM | ___GFP_KSWAPD_RECLAIM)
92 
94 
102 
105 #define GFP_ATOMIC (__GFP_HIGH | __GFP_ATOMIC | __GFP_KSWAPD_RECLAIM)
106 
109 #define GFP_KERNEL (__GFP_RECLAIM | __GFP_IO | __GFP_FS)
110 
113 #define GFP_NOWAIT (__GFP_KSWAPD_RECLAIM)
114 
121 #define GFP_NOIO (__GFP_RECLAIM)
122 
128 #define GFP_NOFS (__GFP_RECLAIM | __GFP_IO)
129 
134 #define GFP_USER (__GFP_RECLAIM | __GFP_IO | __GFP_FS)
135 
142 #define GFP_DMA (__GFP_DMA)
143 
148 #define GFP_HIGHUSER (GFP_USER | __GFP_HIGHMEM)
149 
151 
unsigned int gfp_t
Type used for GFP_FLAGS.
Definition: gfp.h:9