cregit-Linux how code gets into the kernel

Release 4.10 tools/testing/radix-tree/linux/gfp.h

#ifndef _GFP_H

#define _GFP_H


#define __GFP_BITS_SHIFT 26

#define __GFP_BITS_MASK ((gfp_t)((1 << __GFP_BITS_SHIFT) - 1))


#define __GFP_HIGH		0x20u

#define __GFP_IO		0x40u

#define __GFP_FS		0x80u

#define __GFP_NOWARN		0x200u

#define __GFP_ATOMIC		0x80000u

#define __GFP_ACCOUNT		0x100000u

#define __GFP_DIRECT_RECLAIM	0x400000u

#define __GFP_KSWAPD_RECLAIM	0x2000000u


#define __GFP_RECLAIM		(__GFP_DIRECT_RECLAIM|__GFP_KSWAPD_RECLAIM)


#define GFP_ATOMIC		(__GFP_HIGH|__GFP_ATOMIC|__GFP_KSWAPD_RECLAIM)

#define GFP_KERNEL		(__GFP_RECLAIM | __GFP_IO | __GFP_FS)


static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags) { return !!(gfp_flags & __GFP_DIRECT_RECLAIM); }

Contributors

PersonTokensPropCommitsCommitProp
matthew wilcoxmatthew wilcox20100.00%1100.00%
Total20100.00%1100.00%

#endif

Overall Contributors

PersonTokensPropCommitsCommitProp
matthew wilcoxmatthew wilcox7998.75%266.67%
valdis kletnieksvaldis kletnieks11.25%133.33%
Total80100.00%3100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.