Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:The order of subdivision here is critical for the IO subsystem

Proto:static inline void expand(struct zone *zone, struct page *page, int low, int high, struct free_area *area, int migratetype)

Type:void

Parameter:

TypeParameterName
struct zone *zone
struct page *page
intlow
inthigh
struct free_area *area
intmigratetype
2020  size = 1 << high
2022  When high > low cycle
2023  area--
2024  high--
2025  size >>= 1
2026  VM_BUG_ON_PAGE(bad_range(zone, & page[size]), & page[size])
2034  If set_page_guard(zone, & page[size], high, migratetype) Then Continue
2037  Used for pages not on another list
2038  set_page_order( & page[size], high)
Caller
NameDescribe
__rmqueue_smallestGo through the free lists for the given migratetype and remove* the smallest available page from the freelists