函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__memblock_find_range_top_down

函数原型:static phys_addr_t __attribute__((__section__(".meminit.text"))) __attribute__((__cold__)) __attribute__((__no_instrument_function__))__memblock_find_range_top_down(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
228  r_each_free_mem_range_reverse - rev-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 (i, nid, flags, & this_start, & this_end, NULL)
230  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)
231  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)
233  如果this_end小于size则继续下一循环
236  cand等于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.(this_end - size, align)
237  如果cand大于等于this_start则返回:cand
241  返回:0
调用者
名称描述
memblock_find_in_range_node