函数逻辑报告

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\idr.h Create Date:2022-07-27 06:45:03
Last Modify:2020-03-12 14:18:49 Copyright©Brick
首页 函数Tree
注解内核,赢得工具下载SCCTEnglish

函数名称:da_alloc_min() - Allocate an unused ID

函数原型:static inline int ida_alloc_min(struct ida *ida, unsigned int min, gfp_t gfp)

返回类型:int

参数:

类型参数名称
struct ida *ida
unsigned intmin
gfp_tgfp
289  返回:da_alloc_range() - Allocate an unused ID.*@ida: IDA handle.*@min: Lowest ID to allocate.*@max: Highest ID to allocate.*@gfp: Memory allocation flags.* Allocate an ID between @min and @max, inclusive. The allocated ID will
调用者
名称描述
ida_check_allocStraightforward checks that allocating and freeing IDs work.
ida_check_destroy_1Destroy an IDA with a single entry at @base
ida_check_leafCheck what happens when we fill a leaf and then delete it. This may* discover mishandling of IDR_FREE.
ida_check_maxCheck 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.
ida_check_convCheck handling of conversions between exceptional entries and full bitmaps.
mnt_alloc_group_idAllocate a new peer group ID