| Function report | 
| Source Code: kernel\events\uprobes.c | Create Date:2022-07-28 13:45:58 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Slot allocation for XOL
Proto:static int xol_add_vma(struct mm_struct *mm, struct xol_area *area)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct mm_struct * | mm | |
| struct xol_area * | area | 
| 1448 | If lock for writing Then Return -EINTR | 
| 1451 | If xol_area Then | 
| 1456 | If Not Page(s) of instruction slots Then | 
| 1458 | Page(s) of instruction slots = get_unmapped_area(NULL, TASK_SIZE - PAGE_SIZE, PAGE_SIZE, 0, 0) | 
| 1460 | If IS_ERR_VALUE(Page(s) of instruction slots ) Then | 
| 1461 | ret = Page(s) of instruction slots | 
| 1462 | Go to fail | 
| 1466 | vma = _install_special_mapping(mm, Page(s) of instruction slots , PAGE_SIZE, VM_EXEC | VM_MAYEXEC | Do not copy this vma on fork | Memory mapped I/O or similar , & xol_mapping) | 
| 1474 | ret = 0 | 
| 1476 | smp_store_release( & xol_area, area) | 
| 1477 | fail : | 
| 1478 | lease a write lock | 
| 1480 | Return ret | 
| Name | Describe | 
|---|---|
| __create_xol_area | 
| 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 |