函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-27 09:57:15
Last Modify:2020-03-17 11:04:53 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:check_mm

函数原型:static void check_mm(struct mm_struct *mm)

返回类型:void

参数:

类型参数名称
struct mm_struct *mm
660  BUILD_BUG_ON_MSG - break compile if a condition is true & emit supplied* error message.*@condition: the condition which the compiler should know is false.* See BUILD_BUG_ON for description.(ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(resident_page_types) != NR_MM_COUNTERS, "Please make sure 'struct resident_page_types[]' is updated as well")
663 i小于NR_MM_COUNTERS循环
664  x等于atomic_long_read( & count[i])
666  如果此条件成立可能性小(为编译器优化)(x)则打印警报信息("BUG: Bad rss-counter state mm:%p type:%s val:%ld\n", mm, resident_page_types[i], x)
671  如果mm_pgtables_bytes(mm)则打印警报信息("BUG: non-zero pgtables_bytes on freeing mm: %ld\n", mm_pgtables_bytes(mm))
676  VM_BUG_ON_MM( protected by page_table_lock , mm)
调用者
名称描述
__mmdropCalled when the last reference to the mm* is dropped: either by a lazy thread or by* mmput. Free the page directory and the mm.