函数逻辑报告 |
Source Code:mm\mmap.c |
Create Date:2022-07-27 16:17:23 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:get_unmapped_area
函数原型:unsigned long get_unmapped_area(struct file *file, unsigned long addr, unsigned long len, unsigned long pgoff, unsigned long flags)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
struct file * | file | |
unsigned long | addr | |
unsigned long | len | |
unsigned long | pgoff | |
unsigned long | flags |
2172 | unsigned long( * get_area)(struct file * , unsigned long, unsigned long, unsigned long, unsigned long) |
2175 | error等于arch_mmap_check(addr, len, flags) |
2183 | get_area等于get_unmapped_area |
2184 | 如果file则 |
2187 | 否则如果flags按位与Share changes 则 |
2193 | pgoff等于0 |
2198 | 如果IS_ERR_VALUE(addr)则返回:addr |
2203 | 如果offset_in_page(addr)则返回:负EINVAL |
2206 | error等于security_mmap_addr(addr) |
名称 | 描述 |
---|---|
do_mmap | The caller must hold down_write(¤t->mm->mmap_sem). |
do_brk_flags | his is really a simplified "do_mmap". it only handles* anonymous maps. eventually we may be able to do some* brk-specific accounting here. |
mremap_to | |
vma_expandable | |
SYSCALL_DEFINE5 | Expand (or shrink) an existing mapping, potentially moving it at the* same time (controlled by the MREMAP_MAYMOVE flag and available VM space)* MREMAP_FIXED option added 5-Dec-1999 by Benjamin LaHaise* This option implies MREMAP_MAYMOVE. |
xol_add_vma | Slot allocation for XOL |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |