Function report | 
Source Code:mm\madvise.c | 
Create Date:2022-07-28 15:12:47 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:madvise_vma
Proto:static long madvise_vma(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 | 
| 932 | Case behavior == move these pages & resources | 
| 934 | Case behavior == will need these pages | 
| 936 | Case behavior == deactivate these pages | 
| 937 | Return madvise_cold(vma, prev, start, end) | 
| 938 | Case behavior == claim these pages | 
| 939 | Return madvise_pageout(vma, prev, start, end) | 
| 940 | Case behavior == pages only if memory pressure | 
| 941 | Case behavior == don't need these pages | 
| 943 | Default | 
| Name | Describe | 
|---|---|
| SYSCALL_DEFINE3 | The madvise(2) system call | 
| 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  |