Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ype can be of enum type zs_stat_type or fullness_group

Proto:static inline void zs_stat_inc(struct size_class *class, int type, unsigned long cnt)

Type:void

Parameter:

TypeParameterName
struct size_class *class
inttype
unsigned longcnt
554  objs[type] += cnt
Caller
NameDescribe
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 .
obj_malloc
zs_malloczs_malloc - Allocate block of given size from pool.*@pool: pool to allocate from*@size: size of block to allocate*@gfp: gfp flags when allocating object* On success, handle to the allocated object is returned,* otherwise 0.