Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:Remove page from the per-cpu list, caller must protect the list

Proto:static struct page *__rmqueue_pcplist(struct zone *zone, int migratetype, unsigned int alloc_flags, struct per_cpu_pages *pcp, struct list_head *list)

Type:struct page

Parameter:

TypeParameterName
struct zone *zone
intmigratetype
unsigned intalloc_flags
struct per_cpu_pages *pcp
struct list_head *list
3211  Do
3220  page = list_first_entry - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.* Note, that list is expected to be not empty.(list, structpage, lru)
3221  deletes entry from list
3222  number of pages in the list --
3223  When check_new_pcp(page) cycle
3225  Return page
Caller
NameDescribe
rmqueue_pcplistLock and remove page from the per-cpu list