函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Calculate the size of the zone->blockflags rounded to an unsigned long* Start by making sure zonesize is a multiple of pageblock_order by rounding* up

函数原型:static unsigned long __init usemap_size(unsigned long zone_start_pfn, unsigned long zonesize)

返回类型:unsigned long

参数:

类型参数名称
unsigned longzone_start_pfn
unsigned longzonesize
6570  zonesize加等于zone_start_pfn按位与pageblock_nr_pages减1
6571  usemapsize等于undup - round up to the next specified multiple*@x: the value to up*@y: multiple to round up to* Rounds @x up to next multiple of @y. If @y will always be a power* of 2, consider using the faster round_up().(zonesize, pageblock_nr_pages)
6572  usemapsize等于usemapsize右移Huge pages are a constant size
6573  usemapsize乘等于NR_PAGEBLOCK_BITS
6574  usemapsize等于undup - round up to the next specified multiple*@x: the value to up*@y: multiple to round up to* Rounds @x up to next multiple of @y. If @y will always be a power* of 2, consider using the faster round_up().(usemapsize, 8 * sizeof(unsignedlong))
6576  返回:usemapsize除8
调用者
名称描述
setup_usemap