Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tls.c Create Date:2022-07-28 07:52:11
Last Modify:2022-05-18 16:59:10 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Get the current Thread-Local Storage area:

Proto:static void fill_user_desc(struct user_desc *info, int idx, const struct desc_struct *desc)

Type:void

Parameter:

TypeParameterName
struct user_desc *info
intidx
const struct desc_struct *desc
205  memset(info, 0, size of info )
206  entry_number = idx
207  base_addr = get_desc_base(desc)
208  limit = get_desc_limit(desc)
209  seg_32bit = d
210  contents = type >> 2
211  read_exec_only = Not (type & 2)
212  limit_in_pages = g
213  seg_not_present = Not p
214  useable = avl
216  Because this bit is not present in 32-bit user code, user* programs can pass uninitialized values here. Therefore, in* any context in which a user_desc comes from a 32-bit program,* the kernel must act as though lm == 0, regardless of the* actual value. = l
Caller
NameDescribe
do_get_thread_area
regset_tls_get