Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:locate_mem_hole_bottom_up

Proto:static int locate_mem_hole_bottom_up(unsigned long start, unsigned long end, struct kexec_buf *kbuf)

Type:int

Parameter:

TypeParameterName
unsigned longstart
unsigned longend
struct kexec_buf *kbuf
501  image = image
504  temp_start = max - return maximum of two values of the same or compatible types*@x: first value*@y: second value(start, buf_min)
506  Do
507  temp_start = @a is a power of 2 value (temp_start, buf_align)
508  temp_end = temp_start + memsz - 1
510  If temp_end > end || temp_end > buf_max Then Return 0
518  Continue
522  Break
523  When 1 cycle
526  mem = temp_start
529  Return 1
Caller
NameDescribe
locate_mem_hole_callback