1IDA_SIMPLE_GET(9) Basic Kernel Library Functions IDA_SIMPLE_GET(9)
2
3
4
6 ida_simple_get - get a new id.
7
9 int ida_simple_get(struct ida * ida, unsigned int start,
10 unsigned int end, gfp_t gfp_mask);
11
13 ida
14 the (initialized) ida.
15
16 start
17 the minimum id (inclusive, < 0x8000000)
18
19 end
20 the maximum id (exclusive, < 0x8000000 or 0)
21
22 gfp_mask
23 memory allocation flags
24
26 Allocates an id in the range start <= id < end, or returns -ENOSPC. On
27 memory allocation failure, returns -ENOMEM.
28
29 Use ida_simple_remove to get rid of an id.
30
32Kernel Hackers Manual 3.10 June 2019 IDA_SIMPLE_GET(9)