函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_ida.c Create Date:2022-07-27 07:26:22
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:Straightforward checks that allocating and freeing IDs work.

函数原型:static void ida_check_alloc(struct ida *ida)

返回类型:void

参数:

类型参数名称
struct ida *ida
35 i小于10000循环IDA_BUG_ON(ida, da_alloc() - Allocate an unused ID.*@ida: IDA handle.*@gfp: Memory allocation flags.* Allocate an ID between 0 and %INT_MAX, inclusive.* Context: Any context.* Return: The allocated ID, or %-ENOMEM if memory could not be allocated, != i)
38  da_free() - Release an allocated ID.*@ida: IDA handle.*@id: Previously allocated ID.* Context: Any context.
39  da_free() - Release an allocated ID.*@ida: IDA handle.*@id: Previously allocated ID.* Context: Any context.
40 i小于3循环
41  id等于da_alloc() - Allocate an unused ID.*@ida: IDA handle.*@gfp: Memory allocation flags.* Allocate an ID between 0 and %INT_MAX, inclusive.* Context: Any context.* Return: The allocated ID, or %-ENOMEM if memory could not be allocated,
42  IDA_BUG_ON(ida, id < 0)
43  如果i恒等于2则IDA_BUG_ON(ida, id != 10000)
47 i小于5000循环da_free() - Release an allocated ID.*@ida: IDA handle.*@id: Previously allocated ID.* Context: Any context.
50  IDA_BUG_ON(ida, da_alloc_min() - Allocate an unused ID != 10001)
51  释放所有缓存层内IDA树
53  IDA_BUG_ON(ida, !ida_is_empty(ida))
调用者
名称描述
ida_checks