函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Protected by class->lock

函数原型:static inline int get_zspage_inuse(struct zspage *zspage)

返回类型:int

参数:

类型参数名称
struct zspage *zspage
477  返回:inuse
调用者
名称描述
get_fullness_groupFor each size class, zspages are divided into different groups* depending on how "full" they are. This was done so that we could* easily find empty or nearly empty zspages when we try to shrink* the pool (not yet implemented)
insert_zspageEach size class maintains various freelists and zspages are assigned* to one of these freelists based on the number of live objects they* have. This functions inserts the given zspage into the freelist* identified by .
__free_zspage
free_zspage
zspage_full