我找到了" SetPageReserved()"的定义在linux v2.6.25中here,但我无法在v3.10中找到它的定义。我可以从内核模块调用此函数/宏,并在编译错误的情况下构建它。它到底在哪里定义?
答案 0 :(得分:0)
我手头没有3.10,但在4.13还没有
include/linux/page-flags.h
:
#define SETPAGEFLAG(uname, lname, policy) \
static __always_inline void SetPage##uname(struct page *page) \
{ set_bit(PG_##lname, &policy(page, 1)->flags); }
(...)
#define PAGEFLAG(uname, lname, policy) \
TESTPAGEFLAG(uname, lname, policy) \
SETPAGEFLAG(uname, lname, policy) \
CLEARPAGEFLAG(uname, lname, policy)
(...)
PAGEFLAG(Reserved, reserved, PF_NO_COMPOUND)