函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:prep_new_huge_page

函数原型:static void prep_new_huge_page(struct hstate *h, struct page *page, int nid)

返回类型:void

参数:

类型参数名称
struct hstate *h
struct page *page
intnid
1253  初始化链表头
1254  set_compound_page_dtor(page, HUGETLB_PAGE_DTOR)
1255  加自旋锁
1256  set_hugetlb_cgroup(page, NULL)
1257  nr_huge_pages自加
1258  nr_huge_pages_node[nid]自加
1259  自旋锁解锁
调用者
名称描述
alloc_fresh_huge_pageCommon helper to allocate a fresh hugetlb page. All specific allocators* should use this function to get new hugetlb pages
gather_bootmem_preallocPut bootmem huge pages into the standard lists after mem_map is up