Function report |
Source Code:arch\x86\kernel\ldt.c |
Create Date:2022-07-28 07:35:36 |
| Last Modify:2022-05-18 16:20:29 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Called on fork from arch_dup_mmap(). Just copy the current LDT state,* the new task is not running, so nothing can be installed.
Proto:int ldt_dup_context(struct mm_struct *old_mm, struct mm_struct *mm)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct mm_struct * | old_mm | |
| struct mm_struct * | mm |
| 362 | retval = 0 |
| 364 | If Not old_mm Then Return 0 |
| 367 | mutex_lock( & lock) |
| 368 | If Not ldt Then Go to out_unlock |
| 372 | If Not new_ldt Then |
| 374 | Go to out_unlock |
| 381 | retval = map_ldt_struct(mm, new_ldt, 0) |
| 382 | If retval Then |
| 389 | out_unlock : |
| 390 | mutex_unlock( & lock) |
| 391 | Return retval |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |