| Function report | 
| Source Code: mm\madvise.c | Create Date:2022-07-28 15:12:41 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Application wants to free up the pages and associated backing store.* This is effectively punching a hole into the middle of a file.
Proto:static long madvise_remove(struct vm_area_struct *vma, struct vm_area_struct **prev, unsigned long start, unsigned long end)
Type:long
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct vm_area_struct * | vma | |
| struct vm_area_struct ** | prev | |
| unsigned long | start | |
| unsigned long | end | 
| 822 | * prev = NULL | 
| 824 | If Flags, see mm.h. & VM_LOCKED Then Return -EINVAL | 
| 830 | Return -EINVAL | 
| 836 | offset = start - Our start address within vm_mm. + (Offset (within vm_file) in PAGE_SIZEunits << PAGE_SHIFT determines the page size ) | 
| 846 | If userfaultfd_remove(vma, start, end) Then | 
| 850 | error = vfs_fallocate(f, de-allocates range | default is extend size , offset, end - start) | 
| 854 | lock for reading | 
| 855 | Return error | 
| 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 |