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 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.

Proto:static void ida_check_max(struct ida *ida)

Type:void

Parameter:

TypeParameterName
struct ida *ida
111  When j < 65537 cycle
112  base = (1UL << 31) - j
113  When i < j cycle
117  IDA_BUG_ON(ida, da_alloc_min() - Allocate an unused ID != - ENOSPC)
119  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
120  IDA_BUG_ON(ida, !ida_is_empty(ida))
Caller
NameDescribe
ida_checks