| Function report | 
| Source Code: mm\nommu.c | Create Date:2022-07-28 14:37:46 | 
| Last Modify:2020-03-17 21:26:27 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:shrink a VMA by removing the specified chunk from either the beginning or* the end
Proto:static int shrink_vma(struct mm_struct *mm, struct vm_area_struct *vma, unsigned long from, unsigned long to)
Type:int
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct mm_struct * | mm | |
| struct vm_area_struct * | vma | |
| unsigned long | from | |
| unsigned long | to | 
| 1456 | If from > Our start address within vm_mm. Then The first byte after our end addresswithin vm_mm. = from | 
| 1458 | Else Our start address within vm_mm. = to | 
| 1466 | lock for writing | 
| 1468 | If from > start address of region Then | 
| 1469 | to = gion allocated to here | 
| 1471 | Else | 
| 1472 | start address of region = to | 
| 1475 | lease a write lock | 
| 1478 | Return 0 | 
| Name | Describe | 
|---|---|
| do_munmap | lease a mapping* - under NOMMU conditions the chunk to be unmapped must be backed by a single* VMA, though it need not cover the whole VMA | 
| 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 |