函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:create_cache

函数原型:static int create_cache(struct zs_pool *pool)

返回类型:int

参数:

类型参数名称
struct zs_pool *pool
329  handle_cachep等于创建高速缓存区
331  如果非handle_cachep则返回:1
334  zspage_cachep等于创建高速缓存区
336  如果非zspage_cachep
337  删除高速缓存区
338  handle_cachep = NULL
339  返回:1
342  返回:0
调用者
名称描述
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.