函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zs_register_shrinker

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

返回类型:int

参数:

类型参数名称
struct zs_pool *pool
2383  scan_objects等于zs_shrinker_scan
2384  count_objects等于zs_shrinker_count
2385  claim batch size, 0 = default 等于0
2386  seeks to recreate an obj 等于A good number if you don't know better.
2388  返回:register_shrinker( & Compact classes )
调用者
名称描述
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.