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:19
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Called late during init, in free_initmem().* Initial e820_table and e820_table_kexec are largish __initdata arrays.* Copy them to a (usually much smaller) dynamically allocated area that is* sized precisely after the number of e820 entries.

Proto:__init void e820__reallocate_tables(void)

Type:void

Parameter:Nothing

688  size = offsetof(structe820_table, entries) + sizeof(structe820_entry) * nr_entries
689  n = kmemdup(e820_table, size, GFP_KERNEL)
690  BUG_ON(!n)
691  e820_table = n
693  size = offsetof(structe820_table, entries) + sizeof(structe820_entry) * nr_entries
694  n = kmemdup(e820_table_kexec, size, GFP_KERNEL)
695  BUG_ON(!n)
696  e820_table_kexec = n
698  size = offsetof(structe820_table, entries) + sizeof(structe820_entry) * nr_entries
699  n = kmemdup(e820_table_firmware, size, GFP_KERNEL)
700  BUG_ON(!n)
701  e820_table_firmware = n