Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:kernel\fork.c Create Date:2022-07-28 08:57:45
Last Modify:2020-03-17 11:04:53 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:check_mm

Proto:static void check_mm(struct mm_struct *mm)

Type:void

Parameter:

TypeParameterName
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  When i < NR_MM_COUNTERS cycle
664  x = atomic_long_read( & count[i])
666  If Value for the false possibility is greater at compile time(x) Then pr_alert("BUG: Bad rss-counter state mm:%p type:%s val:%ld\n", mm, resident_page_types[i], x)
671  If mm_pgtables_bytes(mm) Then pr_alert("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)
Caller
NameDescribe
__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.