函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:pageset_set_high() sets the high water mark for hot per_cpu_pagelist* to the value high for the pageset p.

函数原型:static void pageset_set_high(struct per_cpu_pageset *p, unsigned long high)

返回类型:void

参数:

类型参数名称
struct per_cpu_pageset *p
unsigned longhigh
6120  batch等于两数取大(1UL, high / 4)
6121  如果high除4大于PAGE_SHIFT determines the page size 乘8则batch等于PAGE_SHIFT determines the page size 乘8
6124  pcp->high and pcp->batch values are related and dependent on one another:* ->batch must never be higher then ->high
调用者
名称描述
pageset_set_high_and_batch