函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:prep_new_page

函数原型:static void prep_new_page(struct page *page, unsigned int order, gfp_t gfp_flags, unsigned int alloc_flags)

返回类型:void

参数:

类型参数名称
struct page *page
unsigned intorder
gfp_tgfp_flags
unsigned intalloc_flags
2157  post_alloc_hook(page, order, gfp_flags)
2159  如果非free_pages_prezeroed()且want_init_on_alloc(gfp_flags)则kernel_init_free_pages(page, 1 << order)
2162  如果ordergfp_flags按位与__GFP_COMPprep_compound_page(page, order)
2171  如果alloc_flags按位与don't check watermarks at all Only to be called by the page allocator on a freshly allocated* page.
2173  否则clear_page_pfmemalloc(page)
调用者
名称描述
get_page_from_freelistget_page_from_freelist goes through the zonelist trying to allocate* a page.