Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:locate_mem_hole_top_down

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

Type:int

Parameter:

TypeParameterName
unsigned longstart
unsigned longend
struct kexec_buf *kbuf
463  image = image
466  temp_end = min - return minimum of two values of the same or compatible types*@x: first value*@y: second value(end, buf_max)
467  temp_start = temp_end - memsz
469  Do
471  temp_start = temp_start & ~(buf_align - 1)
473  If temp_start < start || temp_start < buf_min Then Return 0
476  temp_end = temp_start + memsz - 1
484  Continue
488  Break
489  When 1 cycle
492  mem = temp_start
495  Return 1
Caller
NameDescribe
locate_mem_hole_callback