Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:security_vm_enough_memory_mm

Proto:int security_vm_enough_memory_mm(struct mm_struct *mm, long pages)

Type:int

Parameter:

TypeParameterName
struct mm_struct *mm
longpages
755  cap_sys_admin = 1
766  rc = vm_enough_memory(mm, pages)
767  If rc <= 0 Then
768  cap_sys_admin = 0
769  Break
772  Return 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
Caller
NameDescribe
acct_stack_growthVerify that the stack growth is acceptable and* update accounting. This is shared with both the
do_brk_flagshis is really a simplified "do_mmap". it only handles* anonymous maps. eventually we may be able to do some* brk-specific accounting here.
insert_vm_structInsert vm structure into process list sorted by address* and into the inode's i_mmap tree. If vm_file is non-NULL* then i_mmap_rwsem is taken here.
mprotect_fixup
vma_to_resize
SYSCALL_DEFINE1
__frontswap_unuse_pages