函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:删除高速缓存区

函数原型:void kmem_cache_destroy(struct kmem_cache *s)

返回类型:void

参数:

类型参数名称
struct kmem_cache *s
944  如果此条件成立可能性小(为编译器优化)(!s)则返回
947  flush_memcg_workqueue(s)
949  get_online_cpus()
950  get_online_mems()
952  mutex_lock( & slab_mutex)
954  Refcount for slab cache destroy 自减
955  如果Refcount for slab cache destroy 则转到:out_unlock
958  err等于shutdown_memcg_caches(s)
959  如果非errerr等于shutdown_cache(s)
962  如果err
963  打印错误信息("kmem_cache_destroy %s: Slab cache still has objects\n", Name (only for display!) )
965  dump_stack()
967  out_unlock :
968  mutex_unlock - release the mutex*@lock: the mutex to be released* Unlock a mutex that has been locked by this task previously.* This function must not be used in interrupt context. Unlocking* of a not locked mutex is not allowed.
970  put_online_mems()
971  put_online_cpus()
调用者
名称描述
kmem_cache_oob
memcg_accounted_kmem_cache
kmem_cache_double_free
kmem_cache_invalid_free
do_kmem_cache_sizeTest kmem_cache with given parameters:
do_kmem_cache_rcu_persistentCheck that the data written to an RCU-allocated object survives* reallocation.
btree_module_exit
debug_objects_mem_initCalled after the kmem_caches are functional to setup a dedicated* cache pool, which has the SLAB_DEBUG_OBJECTS flag set. This flag* prevents that the debug code is called on kmem_cache_free() for the* debug tracker objects to avoid recursive calls.
sg_pool_init
sg_pool_exit
zswap_entry_cache_destroy
ksm_slab_init
ksm_slab_free
khugepaged_destroy
create_cache
destroy_cache
z3fold_create_poolz3fold_create_pool() - create a new z3fold pool*@name: pool name*@gfp: gfp flags when allocating the z3fold pool structure*@ops: user-defined operations for the z3fold pool* Return: pointer to the new z3fold pool or NULL if the metadata allocation* failed.
z3fold_destroy_poolz3fold_destroy_pool() - destroys an existing z3fold pool*@pool: the z3fold pool to be destroyed* The pool should be emptied before this function is called.
elv_register
elv_unregister
bfq_slab_kill
fsverity_exit_info_cache
mbcache_exit
dcookie_init
dcookie_exit
init_mqueue_fs
bio_put_slab
smack_initsmack_init - initialize the smack system* Returns 0 on success, -ENOMEM is there's no memory
fscrypt_initscrypt_init() - Set up for fs encryption.