Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:__memblock_free_late - free pages directly to buddy allocator*@base: phys starting address of the boot memory block*@size: size of the boot memory block in bytes* This is only useful when the memblock allocator has already been torn

Proto:void __init __memblock_free_late(phys_addr_t base, phys_addr_t size)

Type:void

Parameter:

TypeParameterName
phys_addr_tbase
phys_addr_tsize
1609  end = base + size - 1
1612  kmemleak_free_part_phys(base, size)
1613  cursor = PFN_UP(base)
1614  end = PFN_DOWN(base + size)
1616  When cursor < end cycle
1617  memblock_free_pages(pfn_to_page(cursor), cursor, 0)
1618  totalram_pages_inc()
Caller
NameDescribe
memblock_discardmemblock_discard - discard memory and reserved arrays if they were allocated
memblock_free_late