current.h 524 B

1234567891011121314151617181920212223
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * Copyright (C) 1998, 2002 Ralf Baechle
  7. * Copyright (C) 1999 Silicon Graphics, Inc.
  8. */
  9. #ifndef _ASM_CURRENT_H
  10. #define _ASM_CURRENT_H
  11. #include <linux/thread_info.h>
  12. struct task_struct;
  13. static inline struct task_struct * get_current(void)
  14. {
  15. return current_thread_info()->task;
  16. }
  17. #define current get_current()
  18. #endif /* _ASM_CURRENT_H */