函数逻辑报告 | 
Source Code:arch\x86\kernel\ldt.c | 
Create Date:2022-07-27 08:35:00 | 
| Last Modify:2022-05-18 16:20:29 | Copyright©Brick | 
| 首页 | 函数Tree | 
| 注解内核,赢得工具 | 下载SCCT | English | 
函数名称:The caller must call finalize_ldt_struct on the result. LDT starts zeroed.
函数原型:static struct *alloc_ldt_struct(unsigned int num_entries)
返回类型:struct
参数:
| 类型 | 参数 | 名称 | 
|---|---|---|
| unsigned int | num_entries | 
| 70 | 如果num_entries大于Maximum number of LDT entries supported. 则返回:NULL | 
| 74 | 如果非new_ldt则返回:NULL | 
| 77 | BUILD_BUG_ON - break compile if a condition is true(The size of each LDT entry. != sizeof(structdesc_struct)) | 
| 86 | 如果alloc_size大于PAGE_SIZE则entries等于vzalloc(alloc_size) | 
| 88 | 否则entries等于get_zeroed_page(GFP_KERNEL) | 
| 91 | 如果非entries则 | 
| 92 | 释放内存 | 
| 93 | 返回:NULL | 
| 97 | slot等于负1 | 
| 100 | 返回:new_ldt | 
| 名称 | 描述 | 
|---|---|
| ldt_dup_context | Called on fork from arch_dup_mmap(). Just copy the current LDT state,* the new task is not running, so nothing can be installed. | 
| write_ldt | 
| 源代码转换工具 开放的插件接口  | X | 
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码  |