Richard Weinberger | 37f078f | 2015-04-03 18:20:58 +0200 | [diff] [blame^] | 1 | #include <linux/thread_info.h> |
2 | #include <linux/kbuild.h> | ||||
3 | |||||
4 | int foo(void) | ||||
5 | { | ||||
6 | OFFSET(TI_TASK, thread_info, task); | ||||
7 | OFFSET(TI_FLAGS, thread_info, flags); | ||||
8 | OFFSET(TI_STATUS, thread_info, status); | ||||
9 | OFFSET(TI_CPU, thread_info, cpu); | ||||
10 | OFFSET(TI_PRE_COUNT, thread_info, preempt_count); | ||||
11 | OFFSET(TI_ADDR_LIMIT, thread_info, addr_limit); | ||||
12 | |||||
13 | return 0; | ||||
14 | } |