函数逻辑报告 |
Source Code:mm\mremap.c |
Create Date:2022-07-27 16:22:19 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:mremap_to
函数原型:static unsigned long mremap_to(unsigned long addr, unsigned long old_len, unsigned long new_addr, unsigned long new_len, bool *locked, struct vm_userfaultfd_ctx *uf, struct list_head *uf_unmap_early, struct list_head *uf_unmap)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | addr | |
unsigned long | old_len | |
unsigned long | new_addr | |
unsigned long | new_len | |
bool * | locked | |
struct vm_userfaultfd_ctx * | uf | |
struct list_head * | uf_unmap_early | |
struct list_head * | uf_unmap |
507 | charged等于0 |
510 | 如果offset_in_page(new_addr)则转到:out |
534 | 如果 number of VMAs 加2大于等于sysctl_max_map_count减3则返回:负ENOMEM |
549 | 如果是错误则 |
555 | 如果Flags, see mm.h. 按位与VM_MAYSHARE则map_flags或等于Share changes |
561 | 如果IS_ERR_VALUE(ret)则转到:out1 |
566 | 如果非offset_in_page(ret)则转到:out |
568 | out1 : |
569 | vm_unacct_memory(charged) |
571 | out : |
572 | 返回:ret |
名称 | 描述 |
---|---|
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. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |