| Function report | 
| Source Code: mm\mremap.c | Create Date:2022-07-28 14:53:27 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:mremap_to
Proto: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)
Type:unsigned long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| 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 | If offset_in_page(new_addr) Then Go to out | 
| 534 | If number of VMAs + 2 >= sysctl_max_map_count - 3 Then Return -ENOMEM | 
| 555 | If Flags, see mm.h. & VM_MAYSHARE Then map_flags |= Share changes | 
| 561 | If IS_ERR_VALUE(ret) Then Go to out1 | 
| 566 | If Not offset_in_page(ret) Then Go to out | 
| 568 | out1 : | 
| 569 | vm_unacct_memory(charged) | 
| 571 | out : | 
| 572 | Return ret | 
| Name | Describe | 
|---|---|
| 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. | 
| 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 |