函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zone_batchsize

函数原型:static int zone_batchsize(struct zone *zone)

返回类型:int

参数:

类型参数名称
struct zone *zone
6022  batch等于zone_managed_pages(zone)除1024
6024  如果batchPAGE_SIZE大于1024乘1024则batch等于1024乘1024除PAGE_SIZE
6026  batch除等于4
6027  如果batch小于1则batch等于1
6040  batch等于unddown_pow_of_two - round the given value down to nearest power of two*@n: parameter* round the given value down to the nearest power of two* - the result is undefined when n == 0* - this can be used to initialise global variables from constant data(batch + batch / 2)减1
6042  返回:batch
调用者
名称描述
pageset_set_high_and_batch
zone_pcp_init