Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:get_page_from_free_area

Proto:static inline struct page *get_page_from_free_area(struct free_area *area, int migratetype)

Type:struct page

Parameter:

TypeParameterName
struct free_area *area
intmigratetype
141  Return list_first_entry_or_null - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.( & free_list[migratetype], structpage, lru)
Caller
NameDescribe
__rmqueue_smallestGo through the free lists for the given migratetype and remove* the smallest available page from the freelists
unreserve_highatomic_pageblockUsed when an allocation is about to fail under memory pressure
__rmqueue_fallbackTry finding a free buddy page on the fallback list and put it on the free* list of requested migratetype, possibly along with other pages from the same* block, depending on fragmentation avoidance heuristics. Returns true if