Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\util.c Create Date:2022-07-28 14:22:06
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Committed memory limit enforced when OVERCOMMIT_NEVER policy is used

Proto:unsigned long vm_commit_limit(void)

Type:unsigned long

Parameter:Nothing

751  If sysctl_overcommit_kbytes Then allowed = sysctl_overcommit_kbytes >> PAGE_SHIFT determines the page size - 10
753  Else allowed = (totalram_pages() - hugetlb_total_pages()) * sysctl_overcommit_ratio / 100
756  allowed += total_swap_pages
758  Return allowed
Caller
NameDescribe
__vm_enough_memoryCheck 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