Function report |
Source Code:mm\page_alloc.c |
Create Date:2022-07-28 15:04:33 |
| Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
| home page | Tree |
| Annotation kernel can get tool activity | Download SCCT | Chinese |
Name:Try finding a free buddy page on the fallback list and put it on the free* list of requested migratetype, possibly along with other pages from the same* block, depending on fragmentation avoidance heuristics. Returns true if
Proto:static __always_inline bool __rmqueue_fallback(struct zone *zone, int order, int start_migratetype, unsigned int alloc_flags)
Type:bool
Parameter:
| Type | Parameter | Name |
|---|---|---|
| struct zone * | zone | |
| int | order | |
| int | start_migratetype | |
| unsigned int | alloc_flags |
| 2642 | If alloc_flags & ALLOC_NOFRAGMENT Then min_order = Huge pages are a constant size |
| 2650 | When current_order >= min_order cycle |
| 2655 | If fallback_mt == -1 Then Continue |
| 2666 | If Not can_steal && start_migratetype == MIGRATE_MOVABLE && current_order > order Then Go to find_smallest |
| 2670 | Go to do_steal |
| 2673 | Return false |
| 2675 | find_smallest : |
| 2681 | If fallback_mt != -1 Then Break |
| 2691 | do_steal : |
| 2692 | page = get_page_from_free_area(area, fallback_mt) |
| 2700 | Return true |
| Name | Describe |
|---|---|
| __rmqueue | Do the hard work of removing an element from the buddy allocator.* Call me with the zone->lock already held. |
| 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 |