common-offsets.h 1016 字节
Newer Older
1 2
/* for use by sys-$SUBARCH/kernel-offsets.c */

3 4
DEFINE(KERNEL_MADV_REMOVE, MADV_REMOVE);

A
Al Viro 已提交
5 6
OFFSET(HOST_TASK_REGS, task_struct, thread.regs);
OFFSET(HOST_TASK_PID, task_struct, pid);
7

8
DEFINE(UM_KERN_PAGE_SIZE, PAGE_SIZE);
J
Jeff Dike 已提交
9
DEFINE(UM_KERN_PAGE_MASK, PAGE_MASK);
J
Jeff Dike 已提交
10
DEFINE(UM_KERN_PAGE_SHIFT, PAGE_SHIFT);
11
DEFINE(UM_NSEC_PER_SEC, NSEC_PER_SEC);
12

13 14 15 16 17 18 19 20
DEFINE_STR(UM_KERN_EMERG, KERN_EMERG);
DEFINE_STR(UM_KERN_ALERT, KERN_ALERT);
DEFINE_STR(UM_KERN_CRIT, KERN_CRIT);
DEFINE_STR(UM_KERN_ERR, KERN_ERR);
DEFINE_STR(UM_KERN_WARNING, KERN_WARNING);
DEFINE_STR(UM_KERN_NOTICE, KERN_NOTICE);
DEFINE_STR(UM_KERN_INFO, KERN_INFO);
DEFINE_STR(UM_KERN_DEBUG, KERN_DEBUG);
21

22 23 24
DEFINE(UM_ELF_CLASS, ELF_CLASS);
DEFINE(UM_ELFCLASS32, ELFCLASS32);
DEFINE(UM_ELFCLASS64, ELFCLASS64);
25

26 27
DEFINE(UM_NR_CPUS, NR_CPUS);

28 29 30
DEFINE(UM_GFP_KERNEL, GFP_KERNEL);
DEFINE(UM_GFP_ATOMIC, GFP_ATOMIC);

31
/* For crypto assembler code. */
32
DEFINE(crypto_tfm_ctx_offset, offsetof(struct crypto_tfm, __crt_ctx));
J
Jeff Dike 已提交
33 34

DEFINE(UM_THREAD_SIZE, THREAD_SIZE);
J
Jeff Dike 已提交
35 36

DEFINE(UM_HZ, HZ);