Changeset 615 for GPL/branches/uniaud32-next/include/linux/gfp.h
- Timestamp:
- Jan 1, 2021, 5:31:48 AM (5 years ago)
- Location:
- GPL/branches/uniaud32-next
- Files:
-
- 1 edited
- 1 copied
-
. (copied) (copied from GPL/branches/uniaud32-linux-3.2.102 )
-
include/linux/gfp.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
GPL/branches/uniaud32-next/include/linux/gfp.h
r440 r615 1 1 #ifndef __LINUX_GFP_H 2 2 #define __LINUX_GFP_H 3 4 #include <asm/page.h> 5 #include <linux/mm.h> 6 #include <linux/types.h> 7 8 /* Plain integer GFP bitmasks. Do not use this directly. */ 9 #define ___GFP_DMA 0x01u 10 #define ___GFP_HIGHMEM 0x02u 11 #define ___GFP_DMA32 0x04u 12 #define ___GFP_MOVABLE 0x08u 13 #define ___GFP_RECLAIMABLE 0x10u 14 #define ___GFP_HIGH 0x20u 15 #define ___GFP_IO 0x40u 16 #define ___GFP_FS 0x80u 17 #define ___GFP_ZERO 0x100u 18 #define ___GFP_ATOMIC 0x200u 19 #define ___GFP_DIRECT_RECLAIM 0x400u 20 #define ___GFP_KSWAPD_RECLAIM 0x800u 21 #define ___GFP_WRITE 0x1000u 22 #define ___GFP_NOWARN 0x2000u 23 #define ___GFP_RETRY_MAYFAIL 0x4000u 24 #define ___GFP_NOFAIL 0x8000u 25 #define ___GFP_NORETRY 0x10000u 26 #define ___GFP_MEMALLOC 0x20000u 27 #define ___GFP_COMP 0x40000u 28 #define ___GFP_NOMEMALLOC 0x80000u 29 #define ___GFP_HARDWALL 0x100000u 30 #define ___GFP_THISNODE 0x200000u 31 #define ___GFP_ACCOUNT 0x400000u 32 #ifdef CONFIG_LOCKDEP 33 #define ___GFP_NOLOCKDEP 0x800000u 34 #else 35 #define ___GFP_NOLOCKDEP 0 36 #endif 37 /* If the above are modified, __GFP_BITS_SHIFT may need updating */ 38 39 #define __GFP_NORETRY 0 40 #define __GFP_NOWARN ((__force gfp_t)___GFP_NOWARN) 41 #define __GFP_COMP ((__force gfp_t)___GFP_COMP) 42 #define __GFP_ZERO ((__force gfp_t)___GFP_ZERO) 3 43 #define GFP_DMA32 0 /* driver must check for 32-bit address */ 4 #define __GFP_COMP 0 5 #define __GFP_NOWARN 0 6 #define __GFP_NORETRY 0 44 45 /* 46 * Physical address zone modifiers (see linux/mmzone.h - low four bits) 47 * 48 * Do not put any conditional on these. If necessary modify the definitions 49 * without the underscores and use them consistently. The definitions here may 50 * be used in bit comparisons. 51 */ 52 #define __GFP_DMA ((__force gfp_t)___GFP_DMA) 53 #define __GFP_HIGHMEM ((__force gfp_t)___GFP_HIGHMEM) 54 #define __GFP_DMA32 ((__force gfp_t)___GFP_DMA32) 55 #define __GFP_MOVABLE ((__force gfp_t)___GFP_MOVABLE) /* ZONE_MOVABLE allowed */ 56 #define GFP_ZONEMASK (__GFP_DMA|__GFP_HIGHMEM|__GFP_DMA32|__GFP_MOVABLE) 57 void *alloc_pages_exact(size_t size, gfp_t gfp_mask); 58 void free_pages_exact(void *virt, size_t size); 59 7 60 #endif /* __LINUX_GFP_H */ 8 61
Note:
See TracChangeset
for help on using the changeset viewer.
