current.h 278 B

12345678910111213141516
  1. #ifndef _I386_CURRENT_H
  2. #define _I386_CURRENT_H
  3. #include <asm/pda.h>
  4. #include <linux/compiler.h>
  5. struct task_struct;
  6. static __always_inline struct task_struct *get_current(void)
  7. {
  8. return read_pda(pcurrent);
  9. }
  10. #define current get_current()
  11. #endif /* !(_I386_CURRENT_H) */