函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:read_ldt

函数原型:static int read_ldt(void __user *ptr, unsigned long bytecount)

返回类型:int

参数:

类型参数名称
void __user *ptr
unsigned longbytecount
412  mm等于mm
416  lock for reading
418  如果非ldt
419  retval等于0
420  转到:out_unlock
423  如果bytecount大于The size of each LDT entry. Maximum number of LDT entries supported. bytecount等于The size of each LDT entry. Maximum number of LDT entries supported.
426  entries_size等于nr_entriesThe size of each LDT entry.
427  如果entries_size大于bytecountentries_size等于bytecount
430  如果copy_to_user(ptr, entries, entries_size)则
431  retval等于负EFAULT
432  转到:out_unlock
435  如果entries_size不等于bytecount
437  如果用户内存块清零
438  retval等于负EFAULT
439  转到:out_unlock
442  retval等于bytecount
444  out_unlock :
445  lease a read lock
446  返回:retval