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/asm-offsets.h>
#include <asm/processor.h>
#include <asm/ptrace.h>

Go to the source code of this file.

Data Structures

struct  thread_info
 

Macros

#define PREEMPT_ACTIVE_BIT   30
 
#define PREEMPT_ACTIVE   (1 << PREEMPT_ACTIVE_BIT)
 
#define THREAD_SIZE   KERNEL_STACK_SIZE
 
#define INIT_THREAD_INFO(tsk)
 
#define current_thread_info()   ((struct thread_info *) ((char *) current + IA64_TASK_SIZE))
 
#define alloc_thread_info_node(tsk, node)   ((struct thread_info *) ((char *) (tsk) + IA64_TASK_SIZE))
 
#define task_thread_info(tsk)   ((struct thread_info *) ((char *) (tsk) + IA64_TASK_SIZE))
 
#define free_thread_info(ti)   /* nothing */
 
#define task_stack_page(tsk)   ((void *)(tsk))
 
#define __HAVE_THREAD_FUNCTIONS
 
#define setup_thread_stack(p, org)
 
#define end_of_stack(p)   (unsigned long *)((void *)(p) + IA64_RBS_OFFSET)
 
#define alloc_task_struct_node(node)
 
#define free_task_struct(tsk)   free_pages((unsigned long) (tsk), KERNEL_STACK_SIZE_ORDER)
 
#define TIF_SIGPENDING   0 /* signal pending */
 
#define TIF_NEED_RESCHED   1 /* rescheduling necessary */
 
#define TIF_SYSCALL_TRACE   2 /* syscall trace active */
 
#define TIF_SYSCALL_AUDIT   3 /* syscall auditing active */
 
#define TIF_SINGLESTEP   4 /* restore singlestep on return to user mode */
 
#define TIF_NOTIFY_RESUME   6 /* resumption notification requested */
 
#define TIF_MEMDIE   17 /* is terminating due to OOM killer */
 
#define TIF_MCA_INIT   18 /* this task is processing MCA or INIT */
 
#define TIF_DB_DISABLED   19 /* debug trap disabled for fsyscall */
 
#define TIF_RESTORE_RSE   21 /* user RBS is newer than kernel RBS */
 
#define _TIF_SYSCALL_TRACE   (1 << TIF_SYSCALL_TRACE)
 
#define _TIF_SYSCALL_AUDIT   (1 << TIF_SYSCALL_AUDIT)
 
#define _TIF_SINGLESTEP   (1 << TIF_SINGLESTEP)
 
#define _TIF_SYSCALL_TRACEAUDIT   (_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP)
 
#define _TIF_NOTIFY_RESUME   (1 << TIF_NOTIFY_RESUME)
 
#define _TIF_SIGPENDING   (1 << TIF_SIGPENDING)
 
#define _TIF_NEED_RESCHED   (1 << TIF_NEED_RESCHED)
 
#define _TIF_MCA_INIT   (1 << TIF_MCA_INIT)
 
#define _TIF_DB_DISABLED   (1 << TIF_DB_DISABLED)
 
#define _TIF_RESTORE_RSE   (1 << TIF_RESTORE_RSE)
 
#define TIF_ALLWORK_MASK
 
#define TIF_WORK_MASK   (TIF_ALLWORK_MASK&~(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT))
 
#define TS_POLLING   1 /* true if in idle loop and not sleeping */
 
#define TS_RESTORE_SIGMASK   2 /* restore signal mask in do_signal() */
 
#define tsk_is_polling(t)   (task_thread_info(t)->status & TS_POLLING)
 
#define HAVE_SET_RESTORE_SIGMASK   1
 

Macro Definition Documentation

#define __HAVE_THREAD_FUNCTIONS

Definition at line 71 of file thread_info.h.

#define _TIF_DB_DISABLED   (1 << TIF_DB_DISABLED)

Definition at line 122 of file thread_info.h.

#define _TIF_MCA_INIT   (1 << TIF_MCA_INIT)

Definition at line 121 of file thread_info.h.

#define _TIF_NEED_RESCHED   (1 << TIF_NEED_RESCHED)

Definition at line 120 of file thread_info.h.

#define _TIF_NOTIFY_RESUME   (1 << TIF_NOTIFY_RESUME)

Definition at line 118 of file thread_info.h.

#define _TIF_RESTORE_RSE   (1 << TIF_RESTORE_RSE)

Definition at line 123 of file thread_info.h.

#define _TIF_SIGPENDING   (1 << TIF_SIGPENDING)

Definition at line 119 of file thread_info.h.

#define _TIF_SINGLESTEP   (1 << TIF_SINGLESTEP)

Definition at line 116 of file thread_info.h.

#define _TIF_SYSCALL_AUDIT   (1 << TIF_SYSCALL_AUDIT)

Definition at line 115 of file thread_info.h.

#define _TIF_SYSCALL_TRACE   (1 << TIF_SYSCALL_TRACE)

Definition at line 114 of file thread_info.h.

#define _TIF_SYSCALL_TRACEAUDIT   (_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT|_TIF_SINGLESTEP)

Definition at line 117 of file thread_info.h.

#define alloc_task_struct_node (   node)
Value:
({ \
struct page *page = alloc_pages_node(node, GFP_KERNEL | __GFP_COMP, \
struct task_struct *ret = page ? page_address(page) : NULL; \
\
ret; \
})

Definition at line 85 of file thread_info.h.

#define alloc_thread_info_node (   tsk,
  node 
)    ((struct thread_info *) ((char *) (tsk) + IA64_TASK_SIZE))

Definition at line 60 of file thread_info.h.

#define current_thread_info (   void)    ((struct thread_info *) ((char *) current + IA64_TASK_SIZE))

Definition at line 59 of file thread_info.h.

#define end_of_stack (   p)    (unsigned long *)((void *)(p) + IA64_RBS_OFFSET)

Definition at line 83 of file thread_info.h.

#define free_task_struct (   tsk)    free_pages((unsigned long) (tsk), KERNEL_STACK_SIZE_ORDER)

Definition at line 93 of file thread_info.h.

#define free_thread_info (   ti)    /* nothing */

Definition at line 68 of file thread_info.h.

#define HAVE_SET_RESTORE_SIGMASK   1

Definition at line 137 of file thread_info.h.

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

Definition at line 44 of file thread_info.h.

#define PREEMPT_ACTIVE   (1 << PREEMPT_ACTIVE_BIT)

Definition at line 15 of file thread_info.h.

#define PREEMPT_ACTIVE_BIT   30

Definition at line 14 of file thread_info.h.

#define setup_thread_stack (   p,
  org 
)
Value:
task_thread_info(p)->task = (p);

Definition at line 79 of file thread_info.h.

#define task_stack_page (   tsk)    ((void *)(tsk))

Definition at line 69 of file thread_info.h.

#define task_thread_info (   tsk)    ((struct thread_info *) ((char *) (tsk) + IA64_TASK_SIZE))

Definition at line 62 of file thread_info.h.

#define THREAD_SIZE   KERNEL_STACK_SIZE

Definition at line 42 of file thread_info.h.

#define TIF_ALLWORK_MASK
Value:

Definition at line 126 of file thread_info.h.

#define TIF_DB_DISABLED   19 /* debug trap disabled for fsyscall */

Definition at line 111 of file thread_info.h.

#define TIF_MCA_INIT   18 /* this task is processing MCA or INIT */

Definition at line 110 of file thread_info.h.

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

Definition at line 109 of file thread_info.h.

#define TIF_NEED_RESCHED   1 /* rescheduling necessary */

Definition at line 104 of file thread_info.h.

#define TIF_NOTIFY_RESUME   6 /* resumption notification requested */

Definition at line 108 of file thread_info.h.

#define TIF_RESTORE_RSE   21 /* user RBS is newer than kernel RBS */

Definition at line 112 of file thread_info.h.

#define TIF_SIGPENDING   0 /* signal pending */

Definition at line 103 of file thread_info.h.

#define TIF_SINGLESTEP   4 /* restore singlestep on return to user mode */

Definition at line 107 of file thread_info.h.

#define TIF_SYSCALL_AUDIT   3 /* syscall auditing active */

Definition at line 106 of file thread_info.h.

#define TIF_SYSCALL_TRACE   2 /* syscall trace active */

Definition at line 105 of file thread_info.h.

#define TIF_WORK_MASK   (TIF_ALLWORK_MASK&~(_TIF_SYSCALL_TRACE|_TIF_SYSCALL_AUDIT))

Definition at line 129 of file thread_info.h.

#define TS_POLLING   1 /* true if in idle loop and not sleeping */

Definition at line 131 of file thread_info.h.

#define TS_RESTORE_SIGMASK   2 /* restore signal mask in do_signal() */

Definition at line 132 of file thread_info.h.

#define tsk_is_polling (   t)    (task_thread_info(t)->status & TS_POLLING)

Definition at line 134 of file thread_info.h.