Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\page_alloc.c Create Date:2022-07-28 15:04:05
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:prep_new_page

Proto:static void prep_new_page(struct page *page, unsigned int order, gfp_t gfp_flags, unsigned int alloc_flags)

Type:void

Parameter:

TypeParameterName
struct page *page
unsigned intorder
gfp_tgfp_flags
unsigned intalloc_flags
2157  post_alloc_hook(page, order, gfp_flags)
2159  If Not free_pages_prezeroed() && want_init_on_alloc(gfp_flags) Then kernel_init_free_pages(page, 1 << order)
2162  If order && gfp_flags & __GFP_COMP Then prep_compound_page(page, order)
2171  If alloc_flags & don't check watermarks at all Then Only to be called by the page allocator on a freshly allocated* page.
2173  Else clear_page_pfmemalloc(page)
Caller
NameDescribe
get_page_from_freelistget_page_from_freelist goes through the zonelist trying to allocate* a page.