Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:lib\test_ida.c Create Date:2022-07-28 06:29:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name:Check handling of conversions between exceptional entries and full bitmaps.

Proto:static void ida_check_conv(struct ida *ida)

Type:void

Parameter:

TypeParameterName
struct ida *ida
131  When i < IDA_BITMAP_BITS * 2 cycle
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  When i < IDA_BITMAP_BITS * 2 cycle 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  When i > 0 cycle 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  When i < IDA_BITMAP_BITS + BITS_PER_LONG - 4 cycle 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  When i > 0 cycle 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))
Caller
NameDescribe
ida_checks