Function report |
Source Code:mm\nommu.c |
Create Date:2022-07-28 14:37:57 |
Last Modify:2020-03-17 21:26:27 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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
Proto:static unsigned long do_mremap(unsigned long addr, unsigned long old_len, unsigned long new_len, unsigned long flags, unsigned long new_addr)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | addr | |
unsigned long | old_len | |
unsigned long | new_len | |
unsigned long | flags | |
unsigned long | new_addr |
1610 | If offset_in_page(addr) Then Return -EINVAL |
1613 | If flags & MREMAP_FIXED && new_addr != addr Then Return (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 | If The first byte after our end addresswithin vm_mm. != Our start address within vm_mm. + old_len Then Return (unsigned long) - EFAULT |
1623 | If Flags, see mm.h. & VM_MAYSHARE Then Return (unsigned long) - EPERM |
1631 | Return Our start address within vm_mm. |
Name | Describe |
---|---|
SYSCALL_DEFINE5 |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |