函数逻辑报告 |
Source Code:lib\test_meminit.c |
Create Date:2022-07-27 07:35:11 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:Check the invariants for the buffer allocated from a slab cache.* If the cache has a test constructor, the first 4 bytes of the object must* always remain equal to CTOR_PATTERN.* If the cache isn't an RCU-typesafe one, or if the allocation is done with
函数原型:static bool __init check_buf(void *buf, int size, bool want_ctor, bool want_rcu, bool want_zero)
返回类型:bool
参数:
类型 | 参数 | 名称 |
---|---|---|
void * | buf | |
int | size | |
bool | want_ctor | |
bool | want_rcu | |
bool | want_zero |
170 | bool fail = false |
176 | 如果want_ctor则 |
177 | 如果buf不等于CTOR_PATTERN则fail等于1 |
179 | 否则 |
183 | 返回:fail |
名称 | 描述 |
---|---|
do_kmem_cache_size | Test kmem_cache with given parameters: |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |