函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:native_set_ldt

函数原型:static inline void native_set_ldt(const void *addr, unsigned int entries)

返回类型:void

参数:

类型参数名称
const void *addr
unsigned intentries
198  如果此条件成立可能性大(为编译器优化)(entries == 0)则asm volatile
200  否则
201  cpu等于当前cpu ID()
204  set_tssldt_descriptor( & ldt, (unsignedlong)addr, DESC_LDT, entries * The size of each LDT entry. - 1)
206  write_gdt_entry(Provide the original GDT , GDT_ENTRY_LDT, & ldt, DESC_LDT)
208  asm volatile