1IDA_GET_NEW_ABOVE(9) Basic Kernel Library Functions IDA_GET_NEW_ABOVE(9)
2
3
4
6 ida_get_new_above - allocate new ID above or equal to a start id
7
9 int ida_get_new_above(struct ida * ida, int starting_id, int * p_id);
10
12 ida
13 ida handle
14
15 starting_id
16 id to start search at
17
18 p_id
19 pointer to the allocated handle
20
22 Allocate new ID above or equal to starting_id. It should be called with
23 any required locks.
24
25 If memory is required, it will return -EAGAIN, you should unlock and go
26 back to the ida_pre_get call. If the ida is full, it will return
27 -ENOSPC.
28
29 p_id returns a value in the range starting_id ... 0x7fffffff.
30
32Kernel Hackers Manual 3.10 June 2019 IDA_GET_NEW_ABOVE(9)