函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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
注解内核,赢得工具下载SCCTEnglish

函数名称:do_kmem_cache_size_bulk

函数原型:static int __init do_kmem_cache_size_bulk(int size, int *total_failures)

返回类型:int

参数:

类型参数名称
intsize
int *total_failures
321  maxiter等于1024
323  bool fail = false
326  c等于创建高速缓存区
327 iter小于maxiter且非fail循环
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)
330 i小于num循环
332  如果bytesfail = true
337  如果numkmem_cache_free_bulk(c, num, objects)
340  total_failures加等于fail
341  返回:1
调用者
名称描述
test_kmemcacheTest kmem_cache allocation by creating caches of different sizes, with and* without constructors, with and without SLAB_TYPESAFE_BY_RCU.