Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-28 15:03:27
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:free_pages_check_bad

Proto:static void free_pages_check_bad(struct page *page)

Type:void

Parameter:

TypeParameterName
struct page *page
1033  bad_reason = NULL
1034  bad_flags = 0
1036  If Value for the false possibility is greater at compile time(atomic_read( & * If the page can be mapped to userspace, encodes the number * of times this page is referenced by a page table.) != - 1) Then bad_reason = "nonzero mapcount"
1038  If Value for the false possibility is greater at compile time( See page-flags.h for PAGE_MAPPING_FLAGS != NULL) Then bad_reason = "non-NULL mapping"
1040  If Value for the false possibility is greater at compile time(page_ref_count(page) != 0) Then bad_reason = "nonzero _refcount"
1042  If Value for the false possibility is greater at compile time( Atomic flags, some possibly * updated asynchronously & Flags checked when a page is freed. Pages being freed should not have* these flags set. It they are, there is a problem.) Then
1043  bad_reason = "PAGE_FLAGS_CHECK_AT_FREE flag(s) set"
1044  bad_flags = Flags checked when a page is freed. Pages being freed should not have* these flags set. It they are, there is a problem.
1047  If Value for the false possibility is greater at compile time(mem_cgroup) Then bad_reason = "page still charged to cgroup"
1050  bad_page(page, bad_reason, bad_flags)
Caller
NameDescribe
free_pages_check