Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmem_cache_destroy

Proto:void kmem_cache_destroy(struct kmem_cache *s)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
944  If Value for the false possibility is greater at compile time(!s) Then Return
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  If Refcount for slab cache destroy Then Go to out_unlock
958  err = shutdown_memcg_caches(s)
959  If Not err Then err = shutdown_cache(s)
962  If err Then
963  pr_err("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()
Caller
NameDescribe
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