函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mman.h Create Date:2022-07-27 07:26:33
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:vm_unacct_memory

函数原型:static inline void vm_unacct_memory(long pages)

返回类型:void

参数:

类型参数名称
longpages
73  vm_acct_memory( - pages)
调用者
名称描述
dup_mmap
__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
mmap_region
remove_vma_listOk - we have the memory areas we should free on the vma list,* so release them, and do the vma updates.* Called with the mm semaphore held.
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.
exit_mmapRelease all mmaps.
mprotect_fixup
move_vma
mremap_to
SYSCALL_DEFINE5Expand (or shrink) an existing mapping, potentially moving it at the* same time (controlled by the MREMAP_MAYMOVE flag and available VM space)* MREMAP_FIXED option added 5-Dec-1999 by Benjamin LaHaise* This option implies MREMAP_MAYMOVE.
SYSCALL_DEFINE1
__frontswap_unuse_pages