函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\memblock.c Create Date:2022-07-27 16:41:04
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:__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

函数原型:void __init __memblock_free_late(phys_addr_t base, phys_addr_t size)

返回类型:void

参数:

类型参数名称
phys_addr_tbase
phys_addr_tsize
1609  end等于basesize减1
1612  kmemleak_free_part_phys(base, size)
1613  cursor等于PFN_UP(base)
1614  end等于PFN_DOWN(base + size)
1616 cursor小于end循环
1617  memblock_free_pages(pfn_to_page(cursor), cursor, 0)
1618  totalram_pages_inc()
调用者
名称描述
memblock_discardmemblock_discard - discard memory and reserved arrays if they were allocated
memblock_free_late