函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm.h Create Date:2022-07-27 06:44:42
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:The identification function is mainly used by the buddy allocator for* determining if two pages could be buddies

函数原型:static inline int page_zone_id(struct page *page)

返回类型:int

参数:

类型参数名称
struct page *page
1077  返回:体系结构无关页的属性右移ZONEID_PGSHIFT位按位与ZONEID_MASK
调用者
名称描述
page_is_buddyThis function checks whether a page is free && is the buddy* we can coalesce a page and its buddy if* (a) the buddy is not in a hole (check before calling!) &&* (b) the buddy is in the buddy system &&* (c) a page and its buddy have the same order &&
__pageblock_pfn_to_pageCheck that the whole (or subset of) a pageblock given by the interval of* [start_pfn, end_pfn) is valid and within the same zone, before scanning it* with the migration of free compaction scanner