函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\desc.h Create Date:2022-07-27 06:49:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:native_load_tls

函数原型:static inline void native_load_tls(struct thread_struct *t, unsigned int cpu)

返回类型:void

参数:

类型参数名称
struct thread_struct *t
unsigned intcpu
278  gdt等于Provide the original GDT
281 i小于GDT_ENTRY_TLS_ENTRIES循环gdt[The layout of the per-CPU GDT under Linux:* 0 - null <=== cacheline #1* 1 - reserved* 2 - reserved* 3 - reserved* 4 - unused <=== cacheline #2* 5 - unused* ------- start of TLS (Thread-Local Storage) segments:* 6 - TLS segment #1 [ glibc's TLS segment ]* + i]等于 Cached TLS descriptors: [i]