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_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.

Proto:int kexec_locate_mem_hole(struct kexec_buf *kbuf)

Type:int

Parameter:

TypeParameterName
struct kexec_buf *kbuf
640  If mem != If kexec_buf.mem is set to this value, kexec_locate_mem_hole()* will try to allocate free memory. Arch may overwrite it. Then Return 0
643  If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_ARCH_KEEP_MEMBLOCK) Then ret = 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
645  Else ret = kexec_walk_memblock(kbuf, locate_mem_hole_callback)
648  Return If ret == 1 Then 0 Else -EADDRNOTAVAIL
Caller
NameDescribe
kexec_add_bufferkexec_add_buffer - place a buffer in a kexec segment*@kbuf: Buffer contents and memory parameters.* This function assumes that kexec_mutex is held.* On successful return, @kbuf->mem will have the physical address of* the buffer in memory.