Function report |
Source Code:mm\page_isolation.c |
Create Date:2022-07-28 16:24:57 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Test all pages in the range is free(means isolated) or not.* all pages in [start_pfn...end_pfn) must be in the same zone.* zone->lock must be held before call this.* Returns the last tested pfn.
Proto:static unsigned long __test_page_isolated_in_pageblock(unsigned long pfn, unsigned long end_pfn, int flags)
Type:unsigned long
Parameter:
Type | Parameter | Name |
---|---|---|
unsigned long | pfn | |
unsigned long | end_pfn | |
int | flags |
266 | If Not pfn_valid_within(pfn) Then |
267 | pfn++ |
268 | Continue |
270 | page = pfn_to_page(pfn) |
271 | If PageBuddy() indicates that the page is free and in the buddy system* (see mm/page_alloc.c). Then pfn += 1 << page_order(page) |
278 | Else if flags & MEMORY_OFFLINE && PageHWPoison(page) Then pfn++ |
281 | Else Break |
285 | Return pfn |
Name | Describe |
---|---|
test_pages_isolated | Caller should ensure that requested range is in a single zone |
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 |