函数逻辑报告 |
Source Code:mm\mmap.c |
Create Date:2022-07-27 16:17:36 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:vma is the first one with address < vma->vm_start. Have to extend vma.
函数原型:int expand_downwards(struct vm_area_struct *vma, unsigned long address)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
unsigned long | address |
2413 | error等于0 |
2416 | 如果address小于mmap_min_addr则返回:负EPERM |
2422 | 如果prev且非Flags, see mm.h. 按位与general info on the segment 的值且Flags, see mm.h. 按位与VM_WRITE按位或currently active flags 按位或VM_EXEC的值则 |
2429 | 如果此条件成立可能性小(为编译器优化)(anon_vma_prepare(vma))则返回:负ENOMEM |
2440 | 如果address小于Our start address within vm_mm. 则 |
2447 | 如果grow小于等于Offset (within vm_file) in PAGE_SIZEunits 则 |
2448 | error等于Verify that the stack growth is acceptable and* update accounting. This is shared with both the |
2449 | 如果非error则 |
2461 | 加自旋锁 |
2462 | 如果Flags, see mm.h. 按位与VM_LOCKED则 Pages that have PG_mlocked set 加等于grow |
2464 | vm_stat_account(mm, Flags, see mm.h. , grow) |
2470 | 自旋锁解锁 |
2472 | perf_event_mmap(vma) |
2478 | validate_mm(mm) |
2479 | 返回:error |
名称 | 描述 |
---|---|
expand_stack |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |