Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

at 58839fdbd441dc079800f2575013f2c438159d5a 17 lines 497 B view raw
1/* SPDX-License-Identifier: GPL-2.0 */ 2#ifndef _TOOLS_INCLUDE_LINUX_GFP_H 3#define _TOOLS_INCLUDE_LINUX_GFP_H 4 5#include <linux/types.h> 6#include <linux/gfp_types.h> 7 8/* Helper macro to avoid gfp flags if they are the default one */ 9#define __default_gfp(a,...) a 10#define default_gfp(...) __default_gfp(__VA_ARGS__ __VA_OPT__(,) GFP_KERNEL) 11 12static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags) 13{ 14 return !!(gfp_flags & __GFP_DIRECT_RECLAIM); 15} 16 17#endif /* _TOOLS_INCLUDE_LINUX_GFP_H */