函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:get_page_from_free_area

函数原型:static inline struct page *get_page_from_free_area(struct free_area *area, int migratetype)

返回类型:struct page

参数:

类型参数名称
struct free_area *area
intmigratetype
141  返回: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)
调用者
名称描述
__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