函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\events\uprobes.c Create Date:2022-07-27 15:07:25
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Slot allocation for XOL

函数原型:static int xol_add_vma(struct mm_struct *mm, struct xol_area *area)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
struct xol_area *area
1448  如果lock for writing则返回:负EINTR
1451  如果xol_area
1452  ret等于负EALREADY
1453  转到:fail
1456  如果非Page(s) of instruction slots
1458  Page(s) of instruction slots 等于get_unmapped_area(NULL, TASK_SIZE - PAGE_SIZE, PAGE_SIZE, 0, 0)
1462  转到: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)
1469  如果是错误
1470  ret等于错误
1471  转到:fail
1474  ret等于0
1476  smp_store_release( & xol_area, area)
1477  fail :
1478  lease a write lock
1480  返回:ret
调用者
名称描述
__create_xol_area