Linux内核中的current_thread_info
摘要:current_thread_info的定义在include/asm/thread_info.h中:/* Given a task stack pointer, you can find it's task structure* just by masking it to the 8K boundary.*/staticinline struct thread_info *current_thread_info(void){ struct thread_info *ti; __asm__("%0 = sp;":"=&d"(ti): );
阅读全文
posted @ 2014-04-07 21:30
浙公网安备 33010602011771号