Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:memblock_trim_memory

Proto:void __attribute__((__section__(".meminit.text"))) __attribute__((__cold__)) __attribute__((__no_instrument_function__))memblock_trim_memory(phys_addr_t align)

Type:void

Parameter:

TypeParameterName
phys_addr_talign
1849  orig_start = base
1850  orig_end = base + size
1851  start = und_up - round up to next specified power of 2*@x: the value to round*@y: multiple to round up to (must be a power of 2)* Rounds @x up to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding up, use roundup() below.(orig_start, align)
1852  end = und_down - round down to next specified power of 2*@x: the value to round*@y: multiple to round down to (must be a power of 2)* Rounds @x down to next multiple of @y (which must be a power of 2).* To perform arbitrary rounding down, use rounddown() below.(orig_end, align)
1854  If start == orig_start && end == orig_end Then Continue
1857  If start < end Then
1858  base = start
1859  size = end - start
1860  Else
1861  memblock_remove_region( & memory, r - regions)
1863  r--