Function report |
Source Code:mm\page_alloc.c |
Create Date:2022-07-28 15:03:15 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name: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 &&
Proto:static inline int page_is_buddy(struct page *page, struct page *buddy, unsigned int order)
Type:int
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | page | |
struct page * | buddy | |
unsigned int | order |
797 | If page_is_guard(buddy) && page_order(buddy) == order Then |
801 | VM_BUG_ON_PAGE(page_count(buddy) != 0, buddy) |
803 | Return 1 |
815 | VM_BUG_ON_PAGE(page_count(buddy) != 0, buddy) |
817 | Return 1 |
819 | Return 0 |
Name | Describe |
---|---|
__free_one_page | Freeing function for a buddy system allocator |
Source code conversion tool public plug-in interface | X |
---|---|
Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |