  

   

 

 

current_thread_info()

 struct thread_info

  

1  thread_info 
\    

^~~~~^-  struct task_struct 
 3.2.     

 struct thread_info   86    <asm/
thread_info .h>   .

struct thread_info {

struct task_struct *task;

struct exec domain *exec_domain;

unsigned long flags;

unsigned long status;

_u32 cpu;

s32 preempt_count;

mm segment t addr limit;

struct restart block restart_block;

unsigned long previous_esp;

u8 supervisor stack[0];

     thread_info      
.   thread_info   task   
 task_struct  .

  

      , 
   (process identification, PID).  PID
  ,      pid_t5,  -
    int.

  (opaque type)    ,    
  .

48  3