函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pcp->high and pcp->batch values are related and dependent on one another:* ->batch must never be higher then ->high

函数原型:static void pageset_update(struct per_cpu_pages *pcp, unsigned long high, unsigned long batch)

返回类型:void

参数:

类型参数名称
struct per_cpu_pages *pcp
unsigned longhigh
unsigned longbatch
6079  chunk size for buddy add/remove 等于1
6080  smp_wmb()
6083  high watermark, emptying needed 等于high
6084  smp_wmb()
6086  chunk size for buddy add/remove 等于batch
调用者
名称描述
pageset_set_batcha companion to pageset_set_high()
pageset_set_highpageset_set_high() sets the high water mark for hot per_cpu_pagelist* to the value high for the pageset p.