函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-27 16:34:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:The order of subdivision here is critical for the IO subsystem

函数原型:static inline void expand(struct zone *zone, struct page *page, int low, int high, struct free_area *area, int migratetype)

返回类型:void

参数:

类型参数名称
struct zone *zone
struct page *page
intlow
inthigh
struct free_area *area
intmigratetype
2020  size等于1左移high
2022 high大于low循环
2023  area自减
2024  high自减
2025  size右移等于1位
2026  VM_BUG_ON_PAGE(bad_range(zone, & page[size]), & page[size])
2034  如果set_page_guard(zone, & page[size], high, migratetype)则继续下一循环
2037  Used for pages not on another list
2038  set_page_order( & page[size], high)
调用者
名称描述
__rmqueue_smallestGo through the free lists for the given migratetype and remove* the smallest available page from the freelists