Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:create_page_chain

Proto:static void create_page_chain(struct size_class *class, struct zspage *zspage, struct page *pages[])

Type:void

Parameter:

TypeParameterName
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  When i < nr_pages cycle
1044  page = pages[i]
1045  set_page_private(page, (unsignedlong)zspage)
1046  first free object = NULL
1047  If i == 0 Then
1048  first_page = page
1053  Else
1056  prev_page = page
Caller
NameDescribe
alloc_zspageAllocate a zspage for the given size class