Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\mm.h Create Date:2022-07-28 05:43:30
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

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

Proto:static inline int page_zone_id(struct page *page)

Type:int

Parameter:

TypeParameterName
struct page *page
1077  Return Atomic flags, some possibly * updated asynchronously >> ZONEID_PGSHIFT & ZONEID_MASK
Caller
NameDescribe
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