---
name: "ida_pre_get"
section: "9"
platform: "linux"
package: "linux-manual-4.9"
version: "4.9.228-1"
release: "Debian 9 (Stretch)"
platforms: ["linux"]
url: "https://new.carta.tech/ida_pre_get"
---

# ida\_pre\_get(9)

reserve resources for ida allocation

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

## COPYRIGHT
