函数逻辑报告 |
Source Code:mm\mmap.c |
Create Date:2022-07-27 16:18:50 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:__install_special_mapping
函数原型:static struct vm_area_struct *__install_special_mapping(struct mm_struct *mm, unsigned long addr, unsigned long len, unsigned long vm_flags, void *priv, const struct vm_operations_struct *ops)
返回类型:struct vm_area_struct
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mm_struct * | mm | |
unsigned long | addr | |
unsigned long | len | |
unsigned long | vm_flags | |
void * | priv | |
const struct vm_operations_struct * | ops |
3381 | vma等于vm_area_alloc(mm) |
3382 | 如果此条件成立可能性小(为编译器优化)(vma == NULL)则返回:错误号 |
3388 | Flags, see mm.h. 等于vm_flags按位或def_flags按位或Cannot expand with mremap() 按位或VM_SOFTDIRTY |
3392 | was vm_pte (shared mem) 等于priv |
3394 | ret等于Insert vm structure into process list sorted by address* and into the inode's i_mmap tree. If vm_file is non-NULL* then i_mmap_rwsem is taken here. |
3400 | perf_event_mmap(vma) |
3402 | 返回:vma |
3404 | out : |
3405 | vm_area_free(vma) |
3406 | 返回:错误号 |
名称 | 描述 |
---|---|
_install_special_mapping | Called with mm->mmap_sem held for writing.* Insert a new vma covering the given region, with the given flags.* Its pages are supplied by the given array of struct page *.* The array can be shorter than len >> PAGE_SHIFT if it's null-terminated. |
install_special_mapping |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |