函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:security\security.c Create Date:2022-07-27 20:12:41
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:security_vm_enough_memory_mm

函数原型:int security_vm_enough_memory_mm(struct mm_struct *mm, long pages)

返回类型:int

参数:

类型参数名称
struct mm_struct *mm
longpages
755  cap_sys_admin等于1
766  rc等于vm_enough_memory(mm, pages)
767  如果rc小于等于0则
768  cap_sys_admin等于0
769  退出
772  返回: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
调用者
名称描述
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
dup_mmap
mmap_region