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

Go to the source code of this file.

Data Structures

struct  thread_info
 

Macros

#define INIT_THREAD_INFO(tsk)
 
#define init_thread_info   (init_thread_union.thread_info)
 
#define init_stack   (init_thread_union.stack)
 
#define THREAD_SIZE_ORDER   (13 - PAGE_SHIFT)
 
#define THREAD_SIZE_PAGES   (1 << THREAD_SIZE_ORDER)
 
#define THREAD_SIZE   (PAGE_SIZE << THREAD_SIZE_ORDER)
 
#define LOG2_THREAD_SIZE   (PAGE_SHIFT + THREAD_SIZE_ORDER)
 
#define STACK_WARN   (THREAD_SIZE/8)
 
#define current_thread_info()   ((struct thread_info *)(stack_pointer & -THREAD_SIZE))
 
#define PREEMPT_ACTIVE   0x10000000
 
#define TIF_SIGPENDING   0 /* signal pending */
 
#define TIF_NEED_RESCHED   1 /* rescheduling necessary */
 
#define TIF_SINGLESTEP
 
#define TIF_ASYNC_TLB   3 /* got an async TLB fault in kernel */
 
#define TIF_SYSCALL_TRACE   4 /* syscall trace active */
 
#define TIF_SYSCALL_AUDIT   5 /* syscall auditing active */
 
#define TIF_SECCOMP   6 /* secure computing */
 
#define TIF_MEMDIE   7 /* OOM killer at work */
 
#define TIF_NOTIFY_RESUME   8 /* callback before returning to user */
 
#define _TIF_SIGPENDING   (1<<TIF_SIGPENDING)
 
#define _TIF_NEED_RESCHED   (1<<TIF_NEED_RESCHED)
 
#define _TIF_SINGLESTEP   (1<<TIF_SINGLESTEP)
 
#define _TIF_ASYNC_TLB   (1<<TIF_ASYNC_TLB)
 
#define _TIF_SYSCALL_TRACE   (1<<TIF_SYSCALL_TRACE)
 
#define _TIF_SYSCALL_AUDIT   (1<<TIF_SYSCALL_AUDIT)
 
#define _TIF_SECCOMP   (1<<TIF_SECCOMP)
 
#define _TIF_MEMDIE   (1<<TIF_MEMDIE)
 
#define _TIF_NOTIFY_RESUME   (1<<TIF_NOTIFY_RESUME)
 
#define _TIF_ALLWORK_MASK
 
#define TS_POLLING   0x0004 /* in idle loop but not sleeping */
 
#define TS_RESTORE_SIGMASK   0x0008 /* restore signal mask in do_signal */
 
#define tsk_is_polling(t)   (task_thread_info(t)->status & TS_POLLING)
 
#define HAVE_SET_RESTORE_SIGMASK   1
 

Functions

void arch_release_thread_info (struct thread_info *info)
 
register unsigned long
stack_pointer 
__asm__ ("sp")
 
void smp_nap (void)
 
void _cpu_idle (void)
 

Macro Definition Documentation

#define _TIF_ALLWORK_MASK
Value:

Definition at line 138 of file thread_info.h.

#define _TIF_ASYNC_TLB   (1<<TIF_ASYNC_TLB)

Definition at line 130 of file thread_info.h.

#define _TIF_MEMDIE   (1<<TIF_MEMDIE)

Definition at line 134 of file thread_info.h.

#define _TIF_NEED_RESCHED   (1<<TIF_NEED_RESCHED)

Definition at line 128 of file thread_info.h.

#define _TIF_NOTIFY_RESUME   (1<<TIF_NOTIFY_RESUME)

Definition at line 135 of file thread_info.h.

#define _TIF_SECCOMP   (1<<TIF_SECCOMP)

Definition at line 133 of file thread_info.h.

#define _TIF_SIGPENDING   (1<<TIF_SIGPENDING)

Definition at line 127 of file thread_info.h.

#define _TIF_SINGLESTEP   (1<<TIF_SINGLESTEP)

Definition at line 129 of file thread_info.h.

#define _TIF_SYSCALL_AUDIT   (1<<TIF_SYSCALL_AUDIT)

Definition at line 132 of file thread_info.h.

#define _TIF_SYSCALL_TRACE   (1<<TIF_SYSCALL_TRACE)

Definition at line 131 of file thread_info.h.

#define current_thread_info (   void)    ((struct thread_info *)(stack_pointer & -THREAD_SIZE))

Definition at line 85 of file thread_info.h.

#define HAVE_SET_RESTORE_SIGMASK   1

Definition at line 158 of file thread_info.h.

#define init_stack   (init_thread_union.stack)

Definition at line 62 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, \
.addr_limit = KERNEL_DS, \
.restart_block = { \
}, \
.step_state = NULL, \
}

Definition at line 47 of file thread_info.h.

#define init_thread_info   (init_thread_union.thread_info)

Definition at line 61 of file thread_info.h.

#define LOG2_THREAD_SIZE   (PAGE_SHIFT + THREAD_SIZE_ORDER)

Definition at line 74 of file thread_info.h.

#define PREEMPT_ACTIVE   0x10000000

Definition at line 110 of file thread_info.h.

#define STACK_WARN   (THREAD_SIZE/8)

Definition at line 76 of file thread_info.h.

#define THREAD_SIZE   (PAGE_SIZE << THREAD_SIZE_ORDER)

Definition at line 73 of file thread_info.h.

#define THREAD_SIZE_ORDER   (13 - PAGE_SHIFT)

Definition at line 67 of file thread_info.h.

#define THREAD_SIZE_PAGES   (1 << THREAD_SIZE_ORDER)

Definition at line 71 of file thread_info.h.

#define TIF_ASYNC_TLB   3 /* got an async TLB fault in kernel */

Definition at line 120 of file thread_info.h.

#define TIF_MEMDIE   7 /* OOM killer at work */

Definition at line 124 of file thread_info.h.

#define TIF_NEED_RESCHED   1 /* rescheduling necessary */

Definition at line 118 of file thread_info.h.

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

Definition at line 125 of file thread_info.h.

#define TIF_SECCOMP   6 /* secure computing */

Definition at line 123 of file thread_info.h.

#define TIF_SIGPENDING   0 /* signal pending */

Definition at line 117 of file thread_info.h.

#define TIF_SINGLESTEP
Value:
2 /* restore singlestep on return to
user mode */

Definition at line 119 of file thread_info.h.

#define TIF_SYSCALL_AUDIT   5 /* syscall auditing active */

Definition at line 122 of file thread_info.h.

#define TIF_SYSCALL_TRACE   4 /* syscall trace active */

Definition at line 121 of file thread_info.h.

#define TS_POLLING   0x0004 /* in idle loop but not sleeping */

Definition at line 152 of file thread_info.h.

#define TS_RESTORE_SIGMASK   0x0008 /* restore signal mask in do_signal */

Definition at line 153 of file thread_info.h.

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

Definition at line 155 of file thread_info.h.

Function Documentation

register unsigned long stack_pointer __asm__ ( "sp"  )
void _cpu_idle ( void  )
void arch_release_thread_info ( struct thread_info info)

Definition at line 400 of file kgdb.c.

void smp_nap ( void  )