Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name: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

Proto:int kmem_cache_shrink(struct kmem_cache *cachep)

Type:int

Parameter:

TypeParameterName
struct kmem_cache *cachep
988  get_online_cpus()
989  get_online_mems()
990  kasan_cache_shrink(cachep)
991  ret = __kmem_cache_shrink(cachep)
992  put_online_mems()
993  put_online_cpus()
994  Return ret
Caller
NameDescribe
kmem_cache_shrink_allkmem_cache_shrink_all - shrink a cache and all memcg caches for root cache*@s: The cache pointer