Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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.

Proto:void drain_zone_pages(struct zone *zone, struct per_cpu_pages *pcp)

Type:void

Parameter:

TypeParameterName
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 = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value( number of pages in the list , batch)
2795  If to_drain > 0 Then 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)