Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

Source Code:include\linux\idr.h Create Date:2022-07-28 05:44:01
Last Modify:2020-03-12 14:18:49 Copyright©Brick
home page Tree
Annotation kernel can get tool activityDownload SCCTChinese

Name: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,

Proto:static inline int ida_alloc(struct ida *ida, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
struct ida *ida
gfp_tgfp
272  Return 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
Caller
NameDescribe
ida_check_allocStraightforward checks that allocating and freeing IDs work.
ida_check_leafCheck what happens when we fill a leaf and then delete it. This may* discover mishandling of IDR_FREE.
ida_check_convCheck handling of conversions between exceptional entries and full bitmaps.
memregion_alloc
mnt_alloc_id