Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-28 15:04:07
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Go through the free lists for the given migratetype and remove* the smallest available page from the freelists

Proto:static __always_inline struct page *__rmqueue_smallest(struct zone *zone, unsigned int order, int migratetype)

Type:struct page

Parameter:

TypeParameterName
struct zone *zone
unsigned intorder
intmigratetype
2190  When current_order < Free memory management - zoned buddy allocator. cycle
2191  area = & Write-intensive fields used from the page allocator [current_order]
2192  page = get_page_from_free_area(area, migratetype)
2193  If Not page Then Continue
2195  del_page_from_free_area(page, area)
2196  The order of subdivision here is critical for the IO subsystem
2197  set_pcppage_migratetype(page, migratetype)
2198  Return page
2201  Return NULL
Caller
NameDescribe
__rmqueue_cma_fallback
__rmqueueDo the hard work of removing an element from the buddy allocator.* Call me with the zone->lock already held.
rmqueueAllocate a page from the given zone. Use pcplists for order-0 allocations.