Function report | 
Source Code:mm\mmap.c | 
Create Date:2022-07-28 14:50:22 | 
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick | 
| home page | Tree | 
| Annotation kernel can get tool activity | Download SCCT | Chinese | 
Name:Return true if the calling process may expand its vm space by the passed* number of pages
Proto:bool may_expand_vm(struct mm_struct *mm, vm_flags_t flags, unsigned long npages)
Type:bool
Parameter:
| Type | Parameter | Name | 
|---|---|---|
| struct mm_struct * | mm | |
| vm_flags_t | flags | |
| unsigned long | npages | 
| 3268 | If Total pages mapped + npages > rlimit(RLIMIT_AS) >> PAGE_SHIFT determines the page size Then Return false | 
| 3274 | If rlimit(RLIMIT_DATA) == 0 && VM_WRITE & ~VM_SHARED & ~VM_STACK + npages <= rlimit_max(RLIMIT_DATA) >> PAGE_SHIFT determines the page size Then Return true | 
| 3278 | pr_warn_once("%s (%d): VmData %lu exceed data ulimit %lu. Update limits%s.\n", comm, pid, ( VM_WRITE & ~VM_SHARED & ~VM_STACK + npages) << PAGE_SHIFT determines the page size , rlimit(RLIMIT_DATA), ignore_rlimit_data ? "" : " or use boot option ignore_rlimit_data") | 
| 3284 | If Not ignore_rlimit_data Then Return false | 
| 3288 | Return true | 
| Name | Describe | 
|---|---|
| mmap_region | |
| acct_stack_growth | Verify that the stack growth is acceptable and* update accounting. This is shared with both the | 
| do_brk_flags | his is really a simplified "do_mmap". it only handles* anonymous maps. eventually we may be able to do some* brk-specific accounting here. | 
| mprotect_fixup | |
| vma_to_resize | 
| 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  |