函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\tls.c Create Date:2022-07-27 08:52:22
Last Modify:2022-05-18 16:59:10 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Get the current Thread-Local Storage area:

函数原型:static void fill_user_desc(struct user_desc *info, int idx, const struct desc_struct *desc)

返回类型:void

参数:

类型参数名称
struct user_desc *info
intidx
const struct desc_struct *desc
205  memset(info, 0, 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等于非type按位与2的值
212  limit_in_pages等于g
213  seg_not_present等于非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
调用者
名称描述
do_get_thread_area
regset_tls_get