函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

函数名称:ida_checks

函数原型:static int ida_checks(void)

返回类型:int

参数:

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  返回:如果tests_run不等于tests_passed则0否则负EINVAL