Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:can_merge

Proto:static bool can_merge(struct size_class *prev, int pages_per_zspage, int objs_per_zspage)

Type:bool

Parameter:

TypeParameterName
struct size_class *prev
intpages_per_zspage
intobjs_per_zspage
1258  If Number of PAGE_SIZE sized pages to combine to form a 'zspage' == pages_per_zspage && objs_per_zspage == objs_per_zspage Then Return true
1262  Return false
Caller
NameDescribe
zs_create_poolzs_create_pool - Creates an allocation pool to work from.*@name: pool name to be created* This function must be called before anything when using* the zsmalloc allocator.* On success, a pointer to the newly created pool is returned,* otherwise NULL.