函数逻辑报告 |
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 |
注解内核,赢得工具 | 下载SCCT | English |
函数名称: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 int | order |
797 | 如果page_is_guard(buddy)且page_order(buddy)恒等于order则 |
801 | VM_BUG_ON_PAGE(page_count(buddy) != 0, buddy) |
803 | 返回:1 |
815 | VM_BUG_ON_PAGE(page_count(buddy) != 0, buddy) |
817 | 返回:1 |
819 | 返回:0 |
名称 | 描述 |
---|---|
__free_one_page | Freeing function for a buddy system allocator |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |