Function report |
Source Code:mm\page_isolation.c |
Create Date:2022-07-28 16:24:54 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:start_isolate_page_range() - make page-allocation-type of range of pages to* be MIGRATE_ISOLATE.*@start_pfn: The lower PFN of the range to be isolated.*@end_pfn: The upper PFN of the range to be isolated.
Proto:int start_isolate_page_range(unsigned long start_pfn, unsigned long end_pfn, unsigned migratetype, int flags)
Type:int
Parameter:
| Type | Parameter | Name |
|---|---|---|
| unsigned long | start_pfn | |
| unsigned long | end_pfn | |
| unsigned | migratetype | |
| int | flags |
| 200 | nr_isolate_pageblock = 0 |
| 202 | BUG_ON(!IS_ALIGNED(start_pfn, pageblock_nr_pages)) |
| 203 | BUG_ON(!IS_ALIGNED(end_pfn, pageblock_nr_pages)) |
| 208 | page = __first_valid_page(pfn, pageblock_nr_pages) |
| 209 | If page Then |
| 210 | If set_migratetype_isolate(page, migratetype, flags) Then |
| 214 | nr_isolate_pageblock++ |
| 217 | Return nr_isolate_pageblock |
| 218 | undo : |
| 223 | If Not page Then Continue |
| 228 | Return -EBUSY |
| 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 |