函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:Check handling of conversions between exceptional entries and full bitmaps.

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

返回类型:void

参数:

类型参数名称
struct ida *ida
131 i小于IDA_BITMAP_BITS乘2循环
132  IDA_BUG_ON(ida, da_alloc_min() - Allocate an unused ID != i + 1)
133  IDA_BUG_ON(ida, da_alloc_min() - Allocate an unused ID != i + BITS_PER_LONG)
135  da_free() - Release an allocated ID.*@ida: IDA handle.*@id: Previously allocated ID.* Context: Any context.
136  da_free() - Release an allocated ID.*@ida: IDA handle.*@id: Previously allocated ID.* Context: Any context.
137  IDA_BUG_ON(ida, !ida_is_empty(ida))
140 i小于IDA_BITMAP_BITS乘2循环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)
142 i大于0循环da_free() - Release an allocated ID.*@ida: IDA handle.*@id: Previously allocated ID.* Context: Any context.
144  IDA_BUG_ON(ida, !ida_is_empty(ida))
146 i小于IDA_BITMAP_BITSBITS_PER_LONG减4循环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)
148 i大于0循环da_free() - Release an allocated ID.*@ida: IDA handle.*@id: Previously allocated ID.* Context: Any context.
150  IDA_BUG_ON(ida, !ida_is_empty(ida))
调用者
名称描述
ida_checks