函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Called from the vmstat counter updater to drain pagesets of this* currently executing processor on remote nodes after they have* expired.* Note that this function must be called with the thread pinned to* a single processor.

函数原型:void drain_zone_pages(struct zone *zone, struct per_cpu_pages *pcp)

返回类型:void

参数:

类型参数名称
struct zone *zone
struct per_cpu_pages *pcp
2792  local_irq_save(flags)
2793  batch等于READ_ONCE( chunk size for buddy add/remove )
2794  to_drain等于两数取小( number of pages in the list , batch)
2795  如果to_drain大于0则Frees a number of pages from the PCP lists* Assumes all pages on list are in same zone, and of same order.* count is the number of pages to free.* If the zone was previously in an "all pages pinned" state then look to
2797  local_irq_restore(flags)