Function report |
Source Code:mm\mlock.c |
Create Date:2022-07-28 14:45:59 |
| Last Modify:2022-05-23 14:12:58 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Take the MCL_* flags passed into mlockall (or 0 if called from munlockall)* and translate into the appropriate modifications to mm->def_flags and/or the* flags for all current VMAs.* There are a couple of subtleties with this
Proto:static int apply_mlockall_flags(int flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| int | flags |
| 765 | struct vm_area_struct * vma, * prev = NULL |
| 766 | to_add = 0 |
| 769 | If flags & lock all future mappings Then |
| 772 | If flags & lock all pages that are faulted in Then def_flags |= Lock the pages covered when they are faulted in |
| 775 | If Not (flags & lock all current mappings ) Then Go to out |
| 779 | If flags & lock all current mappings Then |
| 793 | cond_resched() |
| 795 | out : |
| 796 | Return 0 |
| Name | Describe |
|---|---|
| SYSCALL_DEFINE1 | |
| sys_munlockall |
| 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 |