函数逻辑报告 |
Source Code:mm\slab.c |
Create Date:2022-07-27 17:18:13 |
Last Modify:2022-05-23 17:02:55 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:set_objfreelist_slab_cache
函数原型:static bool set_objfreelist_slab_cache(struct kmem_cache *cachep, size_t size, slab_flags_t flags)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
struct kmem_cache * | cachep | |
size_t | size | |
slab_flags_t | flags |
1861 | num等于0 |
1868 | 如果此条件成立可能性小(为编译器优化)(slab_want_init_on_free(cachep))则返回:false |
1871 | 如果ctor或flags按位与Defer freeing slabs to RCU 则返回:false |
1876 | 如果非num则返回:false |
1879 | 如果num乘sizeof(freelist_idx_t)大于The size of an object without metadata 则返回:false |
1882 | colour等于left除colour_off |
1884 | 返回:true |
名称 | 描述 |
---|---|
__kmem_cache_create | __kmem_cache_create - Create a cache.*@cachep: cache management descriptor*@flags: SLAB flags* Returns a ptr to the cache on success, NULL on failure.* Cannot be called within a int, but can be interrupted. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |