Function report |
Source Code:mm\shuffle.c |
Create Date:2022-07-28 15:09:03 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:__shuffle_zone
Proto:void __meminit __shuffle_zone(struct zone *z)
Type:void
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct zone * | z |
| 109 | end_pfn = zone_end_pfn(z) |
| 110 | order = SHUFFLE_ORDER |
| 111 | order_pages = 1 << order |
| 126 | page_i = For two pages to be swapped in the shuffle, they must be free (on a* 'free_area' lru), have the same order, and have the same migratetype. |
| 127 | If Not page_i Then Continue |
| 137 | j = zone_start_pfn == zone_start_paddr >> PAGE_SHIFT + ALIGN_DOWN(get_random_long() % spanned_pages, order_pages) |
| 155 | If get_pageblock_migratetype(page_j) != migratetype Then |
| 165 | If i % 100 * order_pages == 0 Then |
| 167 | cond_resched() |
| 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 |