函数逻辑报告 |
Source Code:arch\x86\kernel\ldt.c |
Create Date:2022-07-27 08:35:02 |
| Last Modify:2022-05-18 16:20:29 | Copyright©Brick |
| 首页 | 函数Tree |
| 注解内核,赢得工具 | 下载SCCT | English |
函数名称:Called on fork from arch_dup_mmap(). Just copy the current LDT state,* the new task is not running, so nothing can be installed.
函数原型:int ldt_dup_context(struct mm_struct *old_mm, struct mm_struct *mm)
返回类型:int
参数:
| 类型 | 参数 | 名称 |
|---|---|---|
| struct mm_struct * | old_mm | |
| struct mm_struct * | mm |
| 362 | retval等于0 |
| 364 | 如果非old_mm则返回:0 |
| 367 | mutex_lock( & lock) |
| 368 | 如果非ldt则转到:out_unlock |
| 372 | 如果非new_ldt则 |
| 374 | 转到:out_unlock |
| 381 | retval等于map_ldt_struct(mm, new_ldt, 0) |
| 382 | 如果retval则 |
| 389 | out_unlock : |
| 390 | mutex_unlock( & lock) |
| 391 | 返回:retval |
| 源代码转换工具 开放的插件接口 | X |
|---|---|
| 支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |