在Linux Kernel git工作目录中,我做了:

git grep -n '*current_thread_info('

而且似乎没有出现与x86_64相关的信息。结果是:

arch/arc/include/asm/thread_info.h:62:static inline __attribute_const__ struct thread_info *current_thread_info(void)
arch/arm/include/asm/thread_info.h:86:static inline struct thread_info *current_thread_info(void) __attribute_const__;
arch/arm/include/asm/thread_info.h:88:static inline struct thread_info *current_thread_info(void)
arch/c6x/include/asm/thread_info.h:62:struct thread_info *current_thread_info(void)
arch/csky/include/asm/thread_info.h:43:static inline struct thread_info *current_thread_info(void)
arch/h8300/include/asm/thread_info.h:50:static inline struct thread_info *current_thread_info(void)
arch/m68k/include/asm/thread_info.h:46:static inline struct thread_info *current_thread_info(void)
arch/microblaze/include/asm/thread_info.h:90:static inline struct thread_info *current_thread_info(void)
arch/mips/include/asm/thread_info.h:55:static inline struct thread_info *current_thread_info(void)
arch/nios2/include/asm/thread_info.h:67:static inline struct thread_info *current_thread_info(void)
arch/sh/include/asm/thread_info.h:70:static inline struct thread_info *current_thread_info(void)
arch/sparc/include/asm/thread_info_64.h:128:extern struct thread_info *current_thread_info(void);
arch/um/include/asm/thread_info.h:44:static inline struct thread_info *current_thread_info(void)
arch/unicore32/include/asm/thread_info.h:90:static inline struct thread_info *current_thread_info(void) __attribute_const__;
arch/unicore32/include/asm/thread_info.h:92:static inline struct thread_info *current_thread_info(void)
arch/xtensa/include/asm/thread_info.h:84:static inline struct thread_info *current_thread_info(void)


任何想法在哪里可以找到x86_64的current_thread_info实现?

最佳答案

我找到了:

include/linux/thread_info.h
arch/x86/include/asm/current.h

关于linux - x86_64的current_thread_info实现在哪里?,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/59701304/

10-12 06:47