函数逻辑报告 |
Source Code:mm\mmap.c |
Create Date:2022-07-27 16:15:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Return true if we can merge this (vm_flags,anon_vma,file,vm_pgoff)* in front of (at a lower virtual address and file offset than) the vma.* We cannot merge two vmas if they have differently assigned (non-NULL)
函数原型:static int can_vma_merge_before(struct vm_area_struct *vma, unsigned long vm_flags, struct anon_vma *anon_vma, struct file *file, unsigned long vm_pgoff, struct vm_userfaultfd_ctx vm_userfaultfd_ctx)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
struct vm_area_struct * | vma | |
unsigned long | vm_flags | |
struct anon_vma * | anon_vma | |
struct file * | file | |
unsigned long | vm_pgoff | |
struct vm_userfaultfd_ctx | vm_userfaultfd_ctx |
1041 | 如果Offset (within vm_file) in PAGE_SIZEunits 恒等于vm_pgoff则返回:1 |
1044 | 返回:0 |
名称 | 描述 |
---|---|
vma_merge | Given a mapping request (addr,end,vm_flags,file,pgoff), figure out* whether that can be merged with its predecessor or its successor |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |