1. NAME▲

ida_pre_get - reserve resources for ida allocation

2. SYNOPSIS ▲

int ida_pre_get(struct ida *  ida , gfp_t  gfp_mask );

3. ARGUMENTS ▲

ida
    ida handle

gfp_mask
    memory allocation flag

4. DESCRIPTION ▲

This function should be called prior to locking and calling the following function. It preallocates enough memory to satisfy the worst possible allocation.

If the system is REALLY out of memory this function returns 0, otherwise 1.

5. COPYRIGHT ▲