Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:zs_destroy_pool

Proto:void zs_destroy_pool(struct zs_pool *pool)

Type:void

Parameter:

TypeParameterName
struct zs_pool *pool
2521  zs_unregister_shrinker(pool)
2522  zs_unregister_migration(pool)
2523  zs_pool_stat_destroy(pool)
2525  When i < ZS_SIZE_CLASSES cycle
2527  class = size_class[i]
2529  If Not class Then Continue
2532  If index != i Then Continue
2535  When fg < NR_ZS_FULLNESS cycle
2537  pr_info("Freeing non-empty class with size %db, fullness group %d\n", * Size of objects stored in this class. Must be multiple * of ZS_ALIGN., fg)
2541  kfree(class)
2544  destroy_cache(pool)
2545  kfree(name)
2546  kfree(pool)
Caller
NameDescribe
zs_zpool_destroy
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.