Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:free_tail_pages_check

Proto:static int free_tail_pages_check(struct page *head_page, struct page *page)

Type:int

Parameter:

TypeParameterName
struct page *head_page
struct page *page
1065  ret = 1
1071  BUILD_BUG_ON - break compile if a condition is true((unsignedlong)These are non-NULL pointers that will result in page faults* under normal circumstances, used to verify that nobody uses* non-initialized list entries. & 1)
1073  If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_DEBUG_VM) Then
1074  ret = 0
1075  Go to out
1078  Case - == 1
1081  bad_page(page, "nonzero compound_mapcount", 0)
1082  Go to out
1084  Break
1085  Case - == 2
1090  Break
1091  Default
1093  bad_page(page, "corrupted mapping in tail page", 0)
1094  Go to out
1096  Break
1099  bad_page(page, "PageTail not set", 0)
1100  Go to out
1103  bad_page(page, "compound_head not consistent", 0)
1104  Go to out
1106  ret = 0
1107  out :
1108  See page-flags.h for PAGE_MAPPING_FLAGS = NULL
1109  clear_compound_head(page)
1110  Return ret
Caller
NameDescribe
free_pages_prepare