Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm.h Create Date:2022-07-28 05:43:39
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:add_mm_counter

Proto:static inline void add_mm_counter(struct mm_struct *mm, int member, long value)

Type:void

Parameter:

TypeParameterName
struct mm_struct *mm
intmember
longvalue
1635  count = atomic_long_add_return(value, & count[member])
1637  mm_trace_rss_stat(mm, member, count)
Caller
NameDescribe
sync_mm_rss
add_mm_counter_fast
add_mm_rss_vec
madvise_free_pte_range
__do_huge_pmd_anonymous_page
copy_huge_pmd
do_huge_pmd_wp_page
zap_huge_pmd
__split_huge_pmd_locked
__collapse_huge_page_copy
acct_arg_sizeThe nascent bprm->mm is not visible until exec_mmap() but it can* use a lot of memory, account these pages in current->mm temporary* for oom_badness()->get_mm_rss(). Once exec succeeds or fails, we* change the counter back via acct_arg_size(0).