函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称: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

函数原型:static int kexec_walk_resources(struct kexec_buf *kbuf, int (*func)(struct resource *, void *))

返回类型:int

参数:

类型参数名称
struct kexec_buf *kbuf
int (*func
618  如果 Flags to indicate special processing 恒等于KEXEC_TYPE_CRASH则返回: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  否则返回: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
调用者
名称描述
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.