函数逻辑报告 |
Source Code:mm\nommu.c |
Create Date:2022-07-27 16:04:16 |
Last Modify:2020-03-17 21:26:27 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:xpand (or shrink) an existing mapping, potentially moving it at the same* time (controlled by the MREMAP_MAYMOVE flag and available VM space)* under NOMMU conditions, we only permit changing a mapping's size, and only* as long as it stays within the
函数原型:static unsigned long do_mremap(unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, unsigned long new_addr)
返回类型:unsigned long
参数:
类型 | 参数 | 名称 |
---|---|---|
unsigned long | addr | |
unsigned long | old_len | |
unsigned long | new_len | |
unsigned long | flags | |
unsigned long | new_addr |
1610 | 如果offset_in_page(addr)则返回:负EINVAL |
1613 | 如果flags按位与MREMAP_FIXED且new_addr不等于addr则返回:(unsigned long) - EINVAL |
1616 | vma等于look up the first VMA exactly that exactly matches addr* - should be called with mm->mmap_sem at least held readlocked |
1620 | 如果The first byte after our end addresswithin vm_mm. 不等于Our start address within vm_mm. 加old_len则返回:(unsigned long) - EFAULT |
1623 | 如果Flags, see mm.h. 按位与VM_MAYSHARE则返回:(unsigned long) - EPERM |
1631 | 返回:Our start address within vm_mm. |
名称 | 描述 |
---|---|
SYSCALL_DEFINE5 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |