函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:prep_compound_gigantic_page

函数原型:static void prep_compound_gigantic_page(struct page *page, unsigned int order)

返回类型:void

参数:

类型参数名称
struct page *page
unsigned intorder
1265  nr_pages等于1左移order
1266  p等于page加1
1269  set_compound_order(page, order)
1270  __ClearPageReserved(page)
1271  __SetPageHead(page)
1272 i小于nr_pages循环
1285  __ClearPageReserved(p)
1286  set_page_count(p, 0)
1287  set_compound_head(p, page)
1289  atomic_set(compound_mapcount_ptr(page), - 1)
调用者
名称描述
alloc_fresh_huge_pageCommon helper to allocate a fresh hugetlb page. All specific allocators* should use this function to get new hugetlb pages
prep_compound_huge_page