Function report |
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 activity | Download SCCT | Chinese |
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:
| Type | Parameter | Name |
|---|---|---|
| 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 |
| Name | Describe |
|---|---|
| kmem_cache_shrink_all | kmem_cache_shrink_all - shrink a cache and all memcg caches for root cache*@s: The cache pointer |
| Source code conversion tool public plug-in interface | X |
|---|---|
| Support c/c++/esqlc/java Oracle/Informix/Mysql Plug-in can realize: logical Report Code generation and batch code conversion |