函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__memblock_find_range_bottom_up

函数原型:static phys_addr_t __attribute__((__section__(".meminit.text"))) __attribute__((__cold__)) __attribute__((__no_instrument_function__))__memblock_find_range_bottom_up(phys_addr_t start, phys_addr_t end, phys_addr_t size, phys_addr_t align, int nid, enum memblock_flags flags)

返回类型:phys_addr_t

参数:

类型参数名称
phys_addr_tstart
phys_addr_tend
phys_addr_tsize
phys_addr_talign
intnid
enum memblock_flagsflags
193  r_each_free_mem_range - iterate through free memblock areas*@i: u64 used as loop variable*@nid: node selector, %NUMA_NO_NODE for all nodes*@flags: pick from blocks based on memory attributes*@p_start: ptr to phys_addr_t for start address of the range, can (i, nid, flags, & this_start, & this_end, NULL)
194  this_start等于clamp - return a value clamped to a given range with strict typechecking*@val: current value*@lo: lowest allowable value*@hi: highest allowable value* This macro does strict typechecking of @lo/@hi to make sure they are of the* same type as @val(this_start, start, end)
195  this_end等于clamp - return a value clamped to a given range with strict typechecking*@val: current value*@lo: lowest allowable value*@hi: highest allowable value* This macro does strict typechecking of @lo/@hi to make sure they are of the* same type as @val(this_end, start, end)
197  cand等于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.(this_start, align)
198  如果cand小于this_endthis_endcand大于等于size则返回:cand
202  返回:0
调用者
名称描述
memblock_find_in_range_node