Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zone_batchsize

Proto:static int zone_batchsize(struct zone *zone)

Type:int

Parameter:

TypeParameterName
struct zone *zone
6022  batch = zone_managed_pages(zone) / 1024
6024  If batch * PAGE_SIZE > 1024 * 1024 Then batch = 1024 * 1024 / PAGE_SIZE
6026  batch /= 4
6027  If batch < 1 Then 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  Return batch
Caller
NameDescribe
pageset_set_high_and_batch
zone_pcp_init