函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:mm\slab.c Create Date:2022-07-27 17:20:04
Last Modify:2022-05-23 17:02:55 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:do_tune_cpucache

函数原型:static int do_tune_cpucache(struct kmem_cache *cachep, int limit, int batchcount, int shared, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct kmem_cache *cachep
intlimit
intbatchcount
intshared
gfp_tgfp
3899  ret等于Always called with the slab_mutex held
3901  如果slab_state小于FULL则返回:ret
3904  如果ret小于0或非is_root_cache(cachep)则返回:ret
3907  lockdep_assert_held( & slab_mutex)
3910  Always called with the slab_mutex held
3913  返回:ret
调用者
名称描述
enable_cpucache
slabinfo_writeslabinfo_write - Tuning for the slab allocator*@file: unused*@buffer: user buffer*@count: data length*@ppos: unused* Return: %0 on success, negative error code otherwise.