1IDA_PRE_GET(9) Basic Kernel Library Functions IDA_PRE_GET(9)
2
3
4
6 ida_pre_get - reserve resources for ida allocation
7
9 int ida_pre_get(struct ida * ida, gfp_t gfp_mask);
10
12 ida
13 ida handle
14
15 gfp_mask
16 memory allocation flag
17
19 This function should be called prior to locking and calling the
20 following function. It preallocates enough memory to satisfy the worst
21 possible allocation.
22
23 If the system is REALLY out of memory this function returns 0,
24 otherwise 1.
25
27Kernel Hackers Manual 3.10 June 2019 IDA_PRE_GET(9)