1 2 3 4 5 6 7 8 9
#ifndef _ALPHA_CURRENT_H #define _ALPHA_CURRENT_H #include <linux/thread_info.h> #define get_current() (current_thread_info()->task + 0) #define current get_current() #endif /* _ALPHA_CURRENT_H */