Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:kmem_cache_shrink_all - shrink a cache and all memcg caches for root cache*@s: The cache pointer

Proto:void kmem_cache_shrink_all(struct kmem_cache *s)

Type:void

Parameter:

TypeParameterName
struct kmem_cache *s
1006  If Not IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_MEMCG_KMEM) || Not is_root_cache(s) Then
1007  kmem_cache_shrink - Shrink a cache.*@cachep: The cache to shrink.* Releases as many slabs as possible for a cache.* To help debugging, a zero exit status indicates all slabs were released.* Return: %0 if all slabs were released, non-zero otherwise
1008  Return
1011  get_online_cpus()
1012  get_online_mems()
1013  kasan_cache_shrink(s)
1014  __kmem_cache_shrink(s)
1020  mutex_lock( & slab_mutex)
1025  If Used for retrieving partial slabs, etc. & Slab deactivation flag Then Continue
1027  kasan_cache_shrink(c)
1028  __kmem_cache_shrink(c)
1030  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.
1031  put_online_mems()
1032  put_online_cpus()