函数逻辑报告 |
Source Code:mm\util.c |
Create Date:2022-07-27 15:46:09 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Committed memory limit enforced when OVERCOMMIT_NEVER policy is used
函数原型:unsigned long vm_commit_limit(void)
返回类型:unsigned long
参数:无
751 | 如果sysctl_overcommit_kbytes则allowed等于sysctl_overcommit_kbytes右移PAGE_SHIFT determines the page size 减10位 |
753 | 否则allowed等于totalram_pages()减hugetlb_total_pages()的差乘sysctl_overcommit_ratio除100 |
756 | allowed加等于total_swap_pages |
758 | 返回:allowed |
名称 | 描述 |
---|---|
__vm_enough_memory | Check that a process has enough memory to allocate a new virtual* mapping. 0 means there is enough memory for the allocation to* succeed and -ENOMEM implies there is not.* We currently support three overcommit policies, which are set via the* vm |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |