函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Remove page from the per-cpu list, caller must protect the list

函数原型:static struct page *__rmqueue_pcplist(struct zone *zone, int migratetype, unsigned int alloc_flags, struct per_cpu_pages *pcp, struct list_head *list)

返回类型:struct page

参数:

类型参数名称
struct zone *zone
intmigratetype
unsigned intalloc_flags
struct per_cpu_pages *pcp
struct list_head *list
3211  循环
3212  如果链表为空
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  删除链表项
3222  number of pages in the list 自减
3223 check_new_pcp(page)循环
3225  返回:page
调用者
名称描述
rmqueue_pcplistLock and remove page from the per-cpu list