函数逻辑报告 |
Source Code:mm\mmap.c |
Create Date:2022-07-27 16:17:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:This mmap-allocator allocates new areas top-down from below the* stack's low limit (the base):
函数原型:unsigned long arch_get_unmapped_area_topdown(struct file *filp, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | filp | |
unsigned long | addr | |
unsigned long | len | |
unsigned long | pgoff | |
unsigned long | flags |
2124 | mmap_end等于arch_get_mmap_end(addr) |
2127 | 如果len大于mmap_end减mmap_min_addr则返回:负ENOMEM |
2130 | 如果flags按位与Interpret addr exactly 则返回:addr |
2134 | 如果addr则 |
2137 | 如果mmap_end减len大于等于addr且addr大于等于mmap_min_addr且非vma或addr加len小于等于vm_start_gap(vma)的值且非prev或addr大于等于vm_end_gap(prev)的值则返回:addr |
2145 | low_limit等于两数取大(PAGE_SIZE, mmap_min_addr) |
2147 | align_mask等于0 |
2156 | 如果offset_in_page(addr)则 |
2164 | 返回:addr |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |