函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This 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 &&

函数原型:static inline int page_is_buddy(struct page *page, struct page *buddy, unsigned int order)

返回类型:int

参数:

类型参数名称
struct page *page
struct page *buddy
unsigned intorder
797  如果page_is_guard(buddy)且page_order(buddy)恒等于order
798  如果The identification function is mainly used by the buddy allocator for* determining if two pages could be buddies不等于The identification function is mainly used by the buddy allocator for* determining if two pages could be buddies则返回:0
801  VM_BUG_ON_PAGE(page_count(buddy) != 0, buddy)
803  返回:1
806  如果PageBuddy() indicates that the page is free and in the buddy system* (see mm/page_alloc.c).page_order(buddy)恒等于order
812  如果The identification function is mainly used by the buddy allocator for* determining if two pages could be buddies不等于The identification function is mainly used by the buddy allocator for* determining if two pages could be buddies则返回:0
815  VM_BUG_ON_PAGE(page_count(buddy) != 0, buddy)
817  返回:1
819  返回:0
调用者
名称描述
__free_one_pageFreeing function for a buddy system allocator