函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:create_page_chain

函数原型:static void create_page_chain(struct size_class *class, struct zspage *zspage, struct page *pages[])

返回类型:void

参数:

类型参数名称
struct size_class *class
struct zspage *zspage
struct page *pages
1032  struct page * prev_page = NULL
1033  nr_pages等于 Number of PAGE_SIZE sized pages to combine to form a 'zspage'
1043 i小于nr_pages循环
1044  page等于pages[i]
1045  set_page_private(page, (unsignedlong)zspage)
1046  first free object = NULL
1047  如果i恒等于0则
1048  first_page等于page
1053  否则
1056  prev_page等于page
调用者
名称描述
alloc_zspageAllocate a zspage for the given size class