Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:prep_compound_page

Proto:void prep_compound_page(struct page *page, unsigned int order)

Type:void

Parameter:

TypeParameterName
struct page *page
unsigned intorder
680  nr_pages = 1 << order
682  set_compound_page_dtor(page, COMPOUND_PAGE_DTOR)
683  set_compound_order(page, order)
684  __SetPageHead(page)
685  When i < nr_pages cycle
686  p = page + i
687  set_page_count(p, 0)
688  See page-flags.h for PAGE_MAPPING_FLAGS = mm/page_alloc.c ***********
689  set_compound_head(p, page)
691  atomic_set(compound_mapcount_ptr(page), - 1)
Caller
NameDescribe
prep_new_page
prep_compound_huge_page