Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zs_register_shrinker

Proto:static int zs_register_shrinker(struct zs_pool *pool)

Type:int

Parameter:

TypeParameterName
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  Return register_shrinker( & Compact classes )
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.