函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:memblock_trim_memory

函数原型:void __attribute__((__section__(".meminit.text"))) __attribute__((__cold__)) __attribute__((__no_instrument_function__))memblock_trim_memory(phys_addr_t align)

返回类型:void

参数:

类型参数名称
phys_addr_talign
1849  orig_start等于base
1850  orig_end等于basesize
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  如果start恒等于orig_startend恒等于orig_end则继续下一循环
1857  如果start小于end
1858  base等于start
1859  size等于endstart
1860  否则
1861  memblock_remove_region( & memory, r - regions)
1863  r自减