函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:This function removes the given zspage from the freelist identified* by <class, fullness_group>.

函数原型:static void remove_zspage(struct size_class *class, struct zspage *zspage, enum fullness_group fullness)

返回类型:void

参数:

类型参数名称
struct size_class *class
struct zspage *zspage
enum fullness_groupfullness
750  VM_BUG_ON(链表为空)
751  VM_BUG_ON(is_zspage_isolated(zspage))
753  删除链表项并重新初始化
754  ype can be of enum type zs_stat_type or fullness_group
调用者
名称描述
fix_fullness_groupEach size class maintains zspages in different fullness groups depending* on the number of live objects they contain. When allocating or freeing* objects, the fullness status of the page can change, say, from ALMOST_FULL
free_zspage
isolate_zspage