函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:kmem_cache_shrink_all - shrink a cache and all memcg caches for root cache*@s: The cache pointer

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

返回类型:void

参数:

类型参数名称
struct kmem_cache *s
1006  如果非IS_ENABLED(CONFIG_FOO) evaluates to 1 if CONFIG_FOO is set to 'y' or 'm',* 0 otherwise.(CONFIG_MEMCG_KMEM)或非is_root_cache(s)则
1007  收缩缓存区
1008  返回
1011  get_online_cpus()
1012  get_online_mems()
1013  kasan_cache_shrink(s)
1014  __kmem_cache_shrink(s)
1020  mutex_lock( & slab_mutex)
1025  如果Used for retrieving partial slabs, etc. 按位与Slab deactivation flag 则继续下一循环
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()