函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:prep_compound_page

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

返回类型:void

参数:

类型参数名称
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 i小于nr_pages循环
686  p等于pagei
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)
调用者
名称描述
prep_new_page
prep_compound_huge_page