Function report |
Source Code:mm\page_isolation.c |
Create Date:2022-07-28 16:24:49 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
home page | Tree |
Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:unset_migratetype_isolate
Proto:static void unset_migratetype_isolate(struct page *page, unsigned migratetype)
Type:void
Parameter:
Type | Parameter | Name |
---|---|---|
struct page * | page | |
unsigned | migratetype |
94 | bool isolated_page = false |
101 | If Not is_migrate_isolate_page(page) Then Go to out |
113 | order = page_order(page) |
114 | If order >= Huge pages are a constant size Then |
115 | pfn = page_to_pfn(page) |
116 | buddy_pfn = Locate the struct page for both the matching buddy in our* pair (buddy1) and the combined O(n+1) page they form (page) |
119 | If pfn_valid_within(buddy_pfn) && Not is_migrate_isolate_page(buddy) Then |
121 | __isolate_free_page(page, order) |
122 | isolated_page = true |
132 | If Not isolated_page Then |
133 | nr_pages = move_freepages_block(zone, page, migratetype, NULL) |
138 | out : |
140 | If isolated_page Then |
141 | post_alloc_hook(page, order, ZONE_MOVABLE allowed ) |
142 | __free_pages(page, order) |
Name | Describe |
---|---|
start_isolate_page_range | 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. |
undo_isolate_page_range | Make isolated pages available again. |
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 |