Function report

Linux Kernel

v5.5.9

Brick Technologies Co., Ltd

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

Name:dr_alloc() - Allocate an ID.*@idr: IDR handle.*@ptr: Pointer to be associated with the new ID.*@start: The minimum ID (inclusive).*@end: The maximum ID (exclusive).*@gfp: Memory allocation flags.

Proto:int idr_alloc(struct idr *idr, void *ptr, int start, int end, gfp_t gfp)

Type:int

Parameter:

TypeParameterName
struct idr *idr
void *ptr
intstart
intend
gfp_tgfp
81  id = start
84  If WARN_ON_ONCE(start < 0) Then Return -EINVAL
87  ret = dr_alloc_u32() - Allocate an ID.*@idr: IDR handle.*@ptr: Pointer to be associated with the new ID.*@nextid: Pointer to an ID.*@max: The maximum ID to allocate (inclusive).*@gfp: Memory allocation flags.
88  If ret Then Return ret
91  Return id
Caller
NameDescribe
alloc_pid
irq_timings_alloc
cgroup_idr_allocIDR wrappers which synchronize using cgroup_idr_lock
perf_pmu_register
mem_cgroup_alloc
bsg_register_queue