函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Put bootmem huge pages into the standard lists after mem_map is up

函数原型:static void __init gather_bootmem_prealloc(void)

返回类型:void

参数:

2147  page等于virt_to_page(kaddr) returns a valid pointer if and only if* virt_addr_valid(kaddr) returns true.(m)
2148  h等于hstate
2150  WARN_ON(page_count(page) != 1)
2151  prep_compound_huge_page(page, order)
2152  WARN_ON(PageReserved(page))
2153  prep_new_huge_page(h, page, page_to_nid(page))
2154  Perform a free_page(), also freeing any swap cache associated with* this page if it is the last user of the page.
2162  如果hstate_is_gigantic(h)则adjust_managed_page_count(page, 1 << order)
2164  cond_resched()
调用者
名称描述
hugetlb_init