Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros
thread_info.h File Reference
#include <asm/page.h>
#include <asm/types.h>

Go to the source code of this file.

Data Structures

struct  thread_info
 

Macros

#define THREAD_SIZE_ORDER   1
 
#define THREAD_SIZE   (PAGE_SIZE << THREAD_SIZE_ORDER)
 
#define INIT_THREAD_INFO(tsk)
 
#define init_thread_info   (init_thread_union.thread_info)
 
#define init_stack   (init_thread_union.stack)
 
#define get_thread_info(ti)   get_task_struct((ti)->task)
 
#define put_thread_info(ti)   put_task_struct((ti)->task)
 
#define PREEMPT_ACTIVE   0x40000000
 
#define TIF_SYSCALL_TRACE   0 /* syscall trace active */
 
#define TIF_SIGPENDING   1 /* signal pending */
 
#define TIF_NEED_RESCHED   2 /* rescheduling necessary */
 
#define TIF_BREAKPOINT   4 /* enter monitor mode on return */
 
#define TIF_SINGLE_STEP   5 /* single step in progress */
 
#define TIF_MEMDIE   6 /* is terminating due to OOM killer */
 
#define TIF_RESTORE_SIGMASK   7 /* restore signal mask in do_signal */
 
#define TIF_CPU_GOING_TO_SLEEP   8 /* CPU is entering sleep 0 mode */
 
#define TIF_NOTIFY_RESUME   9 /* callback before returning to user */
 
#define TIF_DEBUG   30 /* debugging enabled */
 
#define TIF_USERSPACE   31 /* true if FS sets userspace */
 
#define _TIF_SYSCALL_TRACE   (1 << TIF_SYSCALL_TRACE)
 
#define _TIF_SIGPENDING   (1 << TIF_SIGPENDING)
 
#define _TIF_NEED_RESCHED   (1 << TIF_NEED_RESCHED)
 
#define _TIF_BREAKPOINT   (1 << TIF_BREAKPOINT)
 
#define _TIF_SINGLE_STEP   (1 << TIF_SINGLE_STEP)
 
#define _TIF_MEMDIE   (1 << TIF_MEMDIE)
 
#define _TIF_CPU_GOING_TO_SLEEP   (1 << TIF_CPU_GOING_TO_SLEEP)
 
#define _TIF_NOTIFY_RESUME   (1 << TIF_NOTIFY_RESUME)
 
#define _TIF_WORK_MASK
 
#define _TIF_ALLWORK_MASK   (_TIF_WORK_MASK | _TIF_SYSCALL_TRACE)
 
#define _TIF_DBGWORK_MASK   (_TIF_WORK_MASK & ~_TIF_BREAKPOINT)
 

Macro Definition Documentation

#define _TIF_ALLWORK_MASK   (_TIF_WORK_MASK | _TIF_SYSCALL_TRACE)

Definition at line 108 of file thread_info.h.

#define _TIF_BREAKPOINT   (1 << TIF_BREAKPOINT)

Definition at line 92 of file thread_info.h.

#define _TIF_CPU_GOING_TO_SLEEP   (1 << TIF_CPU_GOING_TO_SLEEP)

Definition at line 95 of file thread_info.h.

#define _TIF_DBGWORK_MASK   (_TIF_WORK_MASK & ~_TIF_BREAKPOINT)

Definition at line 110 of file thread_info.h.

#define _TIF_MEMDIE   (1 << TIF_MEMDIE)

Definition at line 94 of file thread_info.h.

#define _TIF_NEED_RESCHED   (1 << TIF_NEED_RESCHED)

Definition at line 91 of file thread_info.h.

#define _TIF_NOTIFY_RESUME   (1 << TIF_NOTIFY_RESUME)

Definition at line 96 of file thread_info.h.

#define _TIF_SIGPENDING   (1 << TIF_SIGPENDING)

Definition at line 90 of file thread_info.h.

#define _TIF_SINGLE_STEP   (1 << TIF_SINGLE_STEP)

Definition at line 93 of file thread_info.h.

#define _TIF_SYSCALL_TRACE   (1 << TIF_SYSCALL_TRACE)

Definition at line 89 of file thread_info.h.

#define _TIF_WORK_MASK
Value:

Definition at line 101 of file thread_info.h.

#define get_thread_info (   ti)    get_task_struct((ti)->task)

Definition at line 64 of file thread_info.h.

#define init_stack   (init_thread_union.stack)

Definition at line 50 of file thread_info.h.

#define INIT_THREAD_INFO (   tsk)
Value:
{ \
.task = &tsk, \
.exec_domain = &default_exec_domain, \
.flags = 0, \
.cpu = 0, \
.preempt_count = INIT_PREEMPT_COUNT, \
.restart_block = { \
} \
}

Definition at line 37 of file thread_info.h.

#define init_thread_info   (init_thread_union.thread_info)

Definition at line 49 of file thread_info.h.

#define PREEMPT_ACTIVE   0x40000000

Definition at line 69 of file thread_info.h.

#define put_thread_info (   ti)    put_task_struct((ti)->task)

Definition at line 65 of file thread_info.h.

#define THREAD_SIZE   (PAGE_SIZE << THREAD_SIZE_ORDER)

Definition at line 14 of file thread_info.h.

#define THREAD_SIZE_ORDER   1

Definition at line 13 of file thread_info.h.

#define TIF_BREAKPOINT   4 /* enter monitor mode on return */

Definition at line 80 of file thread_info.h.

#define TIF_CPU_GOING_TO_SLEEP   8 /* CPU is entering sleep 0 mode */

Definition at line 84 of file thread_info.h.

#define TIF_DEBUG   30 /* debugging enabled */

Definition at line 86 of file thread_info.h.

#define TIF_MEMDIE   6 /* is terminating due to OOM killer */

Definition at line 82 of file thread_info.h.

#define TIF_NEED_RESCHED   2 /* rescheduling necessary */

Definition at line 79 of file thread_info.h.

#define TIF_NOTIFY_RESUME   9 /* callback before returning to user */

Definition at line 85 of file thread_info.h.

#define TIF_RESTORE_SIGMASK   7 /* restore signal mask in do_signal */

Definition at line 83 of file thread_info.h.

#define TIF_SIGPENDING   1 /* signal pending */

Definition at line 78 of file thread_info.h.

#define TIF_SINGLE_STEP   5 /* single step in progress */

Definition at line 81 of file thread_info.h.

#define TIF_SYSCALL_TRACE   0 /* syscall trace active */

Definition at line 77 of file thread_info.h.

#define TIF_USERSPACE   31 /* true if FS sets userspace */

Definition at line 87 of file thread_info.h.