| Function report | 
| Source Code: mm\madvise.c | Create Date:2022-07-28 15:12:37 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:madvise_dontneed_free
Proto:static long madvise_dontneed_free(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end, int behavior)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct vm_area_struct * | vma | |
| struct vm_area_struct ** | prev | |
| unsigned long | start | |
| unsigned long | end | |
| int | behavior | 
| 760 | If Not can_madv_lru_vma(vma) Then Return -EINVAL | 
| 763 | If Not userfaultfd_remove(vma, start, end) Then | 
| 764 | * prev = NULL | 
| 766 | lock for reading | 
| 770 | If start < Our start address within vm_mm. Then | 
| 780 | Return -ENOMEM | 
| 782 | If Not can_madv_lru_vma(vma) Then Return -EINVAL | 
| 784 | If end > The first byte after our end addresswithin vm_mm. Then | 
| 799 | VM_WARN_ON(start >= end) | 
| 802 | If behavior == don't need these pages Then Return Application no longer needs these pages | 
| 804 | Else if behavior == pages only if memory pressure Then Return madvise_free_single_vma(vma, start, end) | 
| 806 | Else Return -EINVAL | 
| Name | Describe | 
|---|---|
| madvise_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 |