Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:arch\x86\kernel\e820.c Create Date:2022-07-28 07:43:10
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:__append_e820_table

Proto:static int __init __append_e820_table(struct boot_e820_entry *entries, unsigned int nr_entries)

Type:int

Parameter:

TypeParameterName
struct boot_e820_entry *entries
unsigned intnr_entries
410  entry = entries
412  When nr_entries cycle
413  start = addr
414  size = size
415  end = start + size - 1
416  type = type
419  If start > end && Value is more likely to compile time(size) Then Return -1
422  e820__range_add(start, size, type)
424  entry++
425  nr_entries--
427  Return 0
Caller
NameDescribe
append_e820_tableCopy the BIOS E820 map into a safe place.* Sanity-check it while we're at it..* If we're lucky and live on a modern system, the setup code* will have given us a memory map that we can use to properly* set up memory. If we aren't, we'll fake a memory map.
e820__memory_setup_extendedBecause of the small fixed size of struct boot_params, only the first* 128 E820 memory entries are passed to the kernel via boot_params.e820_table,* the remaining (if any) entries are passed via the SETUP_E820_EXT node of