函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-27 16:33:28
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称: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.

函数原型:static inline bool page_expected_state(struct page *page, unsigned long check_flags)

返回类型:bool

参数:

类型参数名称
struct page *page
unsigned longcheck_flags
1014  如果此条件成立可能性小(为编译器优化)(atomic_read( & * If the page can be mapped to userspace, encodes the number * of times this page is referenced by a page table.) != - 1)则返回:false
1017  如果此条件成立可能性小(为编译器优化)((unsignedlong) See page-flags.h for PAGE_MAPPING_FLAGS | page_ref_count(page) | (unsignedlong)mem_cgroup | (体系结构无关页的属性 & check_flags))则返回:false
1025  返回:true
调用者
名称描述
free_pages_check
check_new_pageThis page is about to be returned from the page allocator