Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:static unsigned long __init usemap_size(unsigned long zone_start_pfn, unsigned long zonesize)

Type:unsigned long

Parameter:

TypeParameterName
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  Return usemapsize / 8
Caller
NameDescribe
setup_usemap