tls.c

来自「linux 内核源代码」· C语言 代码 · 共 18 行

C
18
字号
#include "linux/sched.h"void clear_flushed_tls(struct task_struct *task){}int arch_copy_tls(struct task_struct *t){	/*	 * If CLONE_SETTLS is set, we need to save the thread id	 * (which is argument 5, child_tid, of clone) so it can be set	 * during context switches.	 */	t->thread.arch.fs = t->thread.regs.regs.gp[R8 / sizeof(long)];	return 0;}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?