Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

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

Proto:static void ida_check_leaf(struct ida *ida, unsigned int base)

Type:void

Parameter:

TypeParameterName
struct ida *ida
unsigned intbase
88  When i < IDA_BITMAP_BITS cycle
89  IDA_BUG_ON(ida, da_alloc_min() - Allocate an unused ID != base + i)
93  da_destroy() - Free all IDs.*@ida: IDA handle.* Calling this function frees all IDs and releases all resources used* by an IDA. When this call returns, the IDA is empty and can be reused* or freed. If the IDA is already empty, there is no need to call this
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))
Caller
NameDescribe
ida_checks