Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:A bad page could be due to a number of fields. Instead of multiple branches,* try and check multiple fields with one check. The caller must do a detailed* check if necessary.

Proto:static inline bool page_expected_state(struct page *page, unsigned long check_flags)

Type:bool

Parameter:

TypeParameterName
struct page *page
unsigned longcheck_flags
1014  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 Return false
1017  If Value for the false possibility is greater at compile time((unsignedlong) See page-flags.h for PAGE_MAPPING_FLAGS | page_ref_count(page) | (unsignedlong)mem_cgroup | ( Atomic flags, some possibly * updated asynchronously & check_flags)) Then Return false
1025  Return true
Caller
NameDescribe
free_pages_check
check_new_pageThis page is about to be returned from the page allocator