函数逻辑报告 |
Source Code:lib\test_meminit.c |
Create Date:2022-07-27 07:35:14 |
Last Modify:2020-03-12 14:18:49 | Copyright©Brick |
首页 | 函数Tree |
注解内核,赢得工具 | 下载SCCT | English |
函数名称:do_kmem_cache_size_bulk
函数原型:static int __init do_kmem_cache_size_bulk(int size, int *total_failures)
返回类型:int
参数:
类型 | 参数 | 名称 |
---|---|---|
int | size | |
int * | total_failures |
321 | maxiter等于1024 |
323 | bool fail = false |
328 | num等于kmem_cache_alloc_bulk(c, GFP_KERNEL, ARRAY_SIZE - get the number of elements in array @arr*@arr: array to be sized(objects), objects) |
334 | fill_with_garbage(objects[i], size) |
337 | 如果num则kmem_cache_free_bulk(c, num, objects) |
340 | total_failures加等于fail |
341 | 返回:1 |
名称 | 描述 |
---|---|
test_kmemcache | Test kmem_cache allocation by creating caches of different sizes, with and* without constructors, with and without SLAB_TYPESAFE_BY_RCU. |
源代码转换工具 开放的插件接口 | X |
---|---|
支持:c/c++/esqlc/java Oracle/Informix/Mysql 插件可实现:逻辑报告 代码生成和批量转换代码 |