函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 long | check_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_page | This page is about to be returned from the page allocator |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |