函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:__append_e820_table

函数原型:static int __init __append_e820_table(struct boot_e820_entry *entries, unsigned int nr_entries)

返回类型:int

参数:

类型参数名称
struct boot_e820_entry *entries
unsigned intnr_entries
410  entry等于entries
412 nr_entries循环
413  start等于addr
414  size等于size
415  end等于startsize减1
416  type等于type
419  如果start大于end此条件成立可能性大(为编译器优化)(size)则返回:负1
422  e820__range_add(start, size, type)
424  entry自加
425  nr_entries自减
427  返回:0
调用者
名称描述
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