函数逻辑报告 |
Source Code:mm\mmap.c |
Create Date:2022-07-27 16:18:40 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Return true if the calling process may expand its vm space by the passed* number of pages
函数原型:bool may_expand_vm(struct mm_struct *mm, vm_flags_t flags, unsigned long npages)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct mm_struct * | mm | |
vm_flags_t | flags | |
unsigned long | npages |
3268 | 如果 Total pages mapped 加npages大于rlimit(RLIMIT_AS)右移PAGE_SHIFT determines the page size 位则返回:false |
3274 | 如果rlimit(RLIMIT_DATA)恒等于0且 VM_WRITE & ~VM_SHARED & ~VM_STACK 加npages小于等于rlimit_max(RLIMIT_DATA)右移PAGE_SHIFT determines the page size 位则返回: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 | 如果非ignore_rlimit_data则返回:false |
3288 | 返回:true |
名称 | 描述 |
---|---|
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 |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |