Function report |
Source Code:mm\madvise.c |
Create Date:2022-07-28 15:11:51 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Any behaviour which results in changes to the vma->vm_flags needs to* take mmap_sem for writing. Others, which simply traverse vmas, need* to only take it for reading.
Proto:static int madvise_need_mmap_write(int behavior)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | behavior |
| 48 | Case behavior == move these pages & resources |
| 49 | Case behavior == will need these pages |
| 50 | Case behavior == don't need these pages |
| 51 | Case behavior == deactivate these pages |
| 52 | Case behavior == claim these pages |
| 53 | Case behavior == pages only if memory pressure |
| 54 | Return 0 |
| 55 | Default |
| 57 | Return 1 |
| 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 |