Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:ida_checks

Proto:static int ida_checks(void)

Type:int

Parameter:Nothing

157  IDA_BUG_ON( & ida, !ida_is_empty( & ida))
158  Straightforward checks that allocating and freeing IDs work.
159  Check that ida_destroy and ida_is_empty work
160  Check what happens when we fill a leaf and then delete it. This may* discover mishandling of IDR_FREE.
161  Check what happens when we fill a leaf and then delete it. This may* discover mishandling of IDR_FREE.
162  Check what happens when we fill a leaf and then delete it. This may* discover mishandling of IDR_FREE.
163  Check allocations up to and slightly above the maximum allowed (2^31-1) ID.* Allocating up to 2^31-1 should succeed, and then allocating the next one* should fail.
164  Check handling of conversions between exceptional entries and full bitmaps.
166  printk("IDA: %u of %u tests passed\n", tests_passed, tests_run)
167  Return If tests_run != tests_passed Then 0 Else -EINVAL