函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check what happens when we fill a leaf and then delete it. This may* discover mishandling of IDR_FREE.

函数原型:static void ida_check_leaf(struct ida *ida, unsigned int base)

返回类型:void

参数:

类型参数名称
struct ida *ida
unsigned intbase
88 i小于IDA_BITMAP_BITS循环
89  IDA_BUG_ON(ida, da_alloc_min() - Allocate an unused ID != base + i)
93  释放所有缓存层内IDA树
94  IDA_BUG_ON(ida, !ida_is_empty(ida))
96  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, != 0)
97  IDA_BUG_ON(ida, ida_is_empty(ida))
98  da_free() - Release an allocated ID.*@ida: IDA handle.*@id: Previously allocated ID.* Context: Any context.
99  IDA_BUG_ON(ida, !ida_is_empty(ida))
调用者
名称描述
ida_checks