Add more GFP related defines to the LinuxKPI.
Obtained from: kmacy @ MFC after: 1 week Sponsored by: Mellanox Technologies
This commit is contained in:
parent
a5692befeb
commit
1f43b454c7
@ -46,6 +46,14 @@
|
||||
#define __GFP_NOWARN 0
|
||||
#define __GFP_HIGHMEM 0
|
||||
#define __GFP_ZERO M_ZERO
|
||||
#define __GFP_NORETRY 0
|
||||
#define __GFP_RECLAIM 0
|
||||
#define __GFP_RECLAIMABLE 0
|
||||
|
||||
#define __GFP_IO 0
|
||||
#define __GFP_NO_KSWAPD 0
|
||||
#define __GFP_WAIT M_WAITOK
|
||||
#define __GFP_DMA32 0
|
||||
|
||||
#define GFP_NOWAIT M_NOWAIT
|
||||
#define GFP_ATOMIC (M_NOWAIT | M_USE_RESERVE)
|
||||
@ -55,6 +63,8 @@
|
||||
#define GFP_HIGHUSER_MOVABLE M_WAITOK
|
||||
#define GFP_IOFS M_NOWAIT
|
||||
#define GFP_NOIO M_NOWAIT
|
||||
#define GFP_DMA32 0
|
||||
#define GFP_TEMPORARY 0
|
||||
|
||||
static inline void *
|
||||
page_address(struct page *page)
|
||||
@ -147,4 +157,7 @@ static inline uintptr_t __get_free_pages(gfp_t gfp_mask, unsigned int order)
|
||||
|
||||
#define kmalloc_node(chunk, mask, node) kmalloc(chunk, mask)
|
||||
|
||||
#define SetPageReserved(page) do { } while (0) /* NOP */
|
||||
#define ClearPageReserved(page) do { } while (0) /* NOP */
|
||||
|
||||
#endif /* _LINUX_GFP_H_ */
|
||||
|
Loading…
Reference in New Issue
Block a user