Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kexec_walk_resources - call func(data) on free memory regions*@kbuf: Context info for the search. Also passed to @func.*@func: Function to call for each memory region.* Return: The memory walk will stop when func returns a non-zero value

Proto:static int kexec_walk_resources(struct kexec_buf *kbuf, int (*func)(struct resource *, void *))

Type:int

Parameter:

TypeParameterName
struct kexec_buf *kbuf
int (*func
618  If Flags to indicate special processing == KEXEC_TYPE_CRASH Then Return Walks through iomem resources and calls func() with matching resource* ranges. This walks through whole tree and not just first level children.* All the memory ranges which overlap start,end and also match flags and* desc are valid candidates.
623  Else Return This function calls the @func callback against all memory ranges of type* System RAM which are marked as IORESOURCE_SYSTEM_RAM and IORESOUCE_BUSY.* Now, this function is only for System RAM, it deals with full ranges and* not PFNs
Caller
NameDescribe
kexec_locate_mem_holekexec_locate_mem_hole - find free memory for the purgatory or the next kernel*@kbuf: Parameters for the memory search.* On success, kbuf->mem will have the start address of the memory region found.* Return: 0 on success, negative errno on error.