ida_pre_get
Prev | idr/ida Functions | Next

## Name

ida_pre_get — reserve resources for ida allocation

## Synopsis

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

## Arguments

`ida`

  ida handle

`gfp_mask`

  memory allocation flag

## 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`.

Prev | Up | Next
idr_init | Home | ida_get_new_above