函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:isolate_zspage

函数原型:static struct zspage *isolate_zspage(struct size_class *class, bool source)

返回类型:struct zspage

参数:

类型参数名称
struct size_class *class
boolsource
1749  enum fullness_group fg[2] = {ZS_ALMOST_EMPTY, ZS_ALMOST_FULL}
1751  如果非source
1752  fg[0]等于ZS_ALMOST_FULL
1753  fg[1]等于ZS_ALMOST_EMPTY
1756 i小于2循环
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  如果zspage
1762  返回:zspage
1766  返回:zspage
调用者
名称描述
__zs_compact