Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__memblock_find_range_top_down

Proto: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)

Type:phys_addr_t

Parameter:

TypeParameterName
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  If this_end < size Then Continue
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  If cand >= this_start Then Return cand
241  Return 0
Caller
NameDescribe
memblock_find_in_range_node