Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-28 15:07:58
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:mem_init_print_info

Proto:void __init mem_init_print_info(const char *str)

Type:void

Parameter:

TypeParameterName
const char *str
7520  physpages = get_num_physpages()
7521  codesize = Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains - Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains
7522  datasize = _edata - _sdata
7523  rosize = __end_rodata - __start_rodata
7524  bss_size = __bss_stop - __bss_start
7525  init_data_size = __init_end - __init_begin
7526  init_code_size = _einittext - _sinittext
7541  Detect special cases and adjust section sizes accordingly:* 1) .init.* may be embedded into .data sections* 2) .init.text.* may be out of [__init_begin, __init_end],* please refer to arch/tile/kernel/vmlinux.lds.S.* 3) (__init_begin, __init_end, init_data_size, _sinittext, init_code_size)
7543  Detect special cases and adjust section sizes accordingly:* 1) .init.* may be embedded into .data sections* 2) .init.text.* may be out of [__init_begin, __init_end],* please refer to arch/tile/kernel/vmlinux.lds.S.* 3) (Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains , Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains , codesize, _sinittext, init_code_size)
7544  Detect special cases and adjust section sizes accordingly:* 1) .init.* may be embedded into .data sections* 2) .init.text.* may be out of [__init_begin, __init_end],* please refer to arch/tile/kernel/vmlinux.lds.S.* 3) (_sdata, _edata, datasize, __init_begin, init_data_size)
7545  Detect special cases and adjust section sizes accordingly:* 1) .init.* may be embedded into .data sections* 2) .init.text.* may be out of [__init_begin, __init_end],* please refer to arch/tile/kernel/vmlinux.lds.S.* 3) (Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains , Usage guidelines:* _text, _data: architecture specific, don't use them in arch-independent code* [_stext, _etext]: contains .text.* sections, may also contain .rodata.** and/or .init.* sections* [_sdata, _edata]: contains , codesize, __start_rodata, rosize)
7546  Detect special cases and adjust section sizes accordingly:* 1) .init.* may be embedded into .data sections* 2) .init.text.* may be out of [__init_begin, __init_end],* please refer to arch/tile/kernel/vmlinux.lds.S.* 3) (_sdata, _edata, datasize, __start_rodata, rosize)
7550  pr_info("Memory: %luK/%luK available (%luK kernel code, %luK rwdata, %luK rodata, %luK init, %luK bss, %luK reserved, %luK cma-reserved%s%s)\n", Definition of global_zone_page_state not available yet () << (PAGE_SHIFT determines the page size - 10), physpages << (PAGE_SHIFT determines the page size - 10), codesize >> 10, datasize >> 10, rosize >> 10, (init_data_size + init_code_size) >> 10, bss_size >> 10, (physpages - totalram_pages() - totalcma_pages) << (PAGE_SHIFT determines the page size - 10), totalcma_pages << (PAGE_SHIFT determines the page size - 10), str ? ", " : "", str ? str : "")