函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:can_merge

函数原型:static bool can_merge(struct size_class *prev, int pages_per_zspage, int objs_per_zspage)

返回类型:bool

参数:

类型参数名称
struct size_class *prev
intpages_per_zspage
intobjs_per_zspage
1258  如果 Number of PAGE_SIZE sized pages to combine to form a 'zspage' 恒等于pages_per_zspageobjs_per_zspage恒等于objs_per_zspage则返回:true
1262  返回:false
调用者
名称描述
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.