函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:zs_destroy_pool

函数原型:void zs_destroy_pool(struct zs_pool *pool)

返回类型:void

参数:

类型参数名称
struct zs_pool *pool
2521  zs_unregister_shrinker(pool)
2522  zs_unregister_migration(pool)
2523  zs_pool_stat_destroy(pool)
2525 i小于ZS_SIZE_CLASSES循环
2527  class等于size_class[i]
2529  如果非class则继续下一循环
2532  如果index不等于i则继续下一循环
2535 fg小于NR_ZS_FULLNESS循环
2536  如果非链表为空
2537  打印信息("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  释放内存
2544  destroy_cache(pool)
2545  释放内存
2546  释放内存
调用者
名称描述
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.