Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\include\asm\desc.h Create Date:2022-07-28 05:48:44
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:fill_ldt

Proto:static inline void fill_ldt(struct desc_struct *desc, const struct user_desc *info)

Type:void

Parameter:

TypeParameterName
struct desc_struct *desc
const struct user_desc *info
17  limit0 = limit & 0x0ffff
19  base0 = base_addr & 0x0000ffff
20  base1 = (base_addr & 0x00ff0000) >> 16
22  type = (read_exec_only ^ 1) << 1
23  type |= contents << 2
25  type |= 1
27  s = 1
28  dpl = 0x3
29  p = seg_not_present ^ 1
30  limit1 = (limit & 0xf0000) >> 16
31  avl = useable
32  d = seg_32bit
33  g = limit_in_pages
35  base2 = (base_addr & 0xff000000) >> 24
40  l = 0
Caller
NameDescribe
write_ldt
set_tls_desc