Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:isolate_zspage

Proto:static struct zspage *isolate_zspage(struct size_class *class, bool source)

Type:struct zspage

Parameter:

TypeParameterName
struct size_class *class
boolsource
1749  enum fullness_group fg[2] = {ZS_ALMOST_EMPTY, ZS_ALMOST_FULL}
1751  If Not source Then
1752  fg[0] = ZS_ALMOST_FULL
1753  fg[1] = ZS_ALMOST_EMPTY
1756  When i < 2 cycle
1757  zspage = list_first_entry_or_null - get the first element from a list*@ptr: the list head to take the element from.*@type: the type of the struct this is embedded in.*@member: the name of the list_head within the struct.( & fullness_list[fg[i]], structzspage, list)
1759  If zspage Then
1762  Return zspage
1766  Return zspage
Caller
NameDescribe
__zs_compact