---
name: "ida_get_new"
section: "9"
platform: "linux"
package: "linux-manual-3.2"
version: "3.2.78-1"
release: "Debian 7 (Wheezy)"
platforms: ["linux"]
url: "https://new.carta.tech/ida_get_new"
---

# ida\_get\_new(9)

allocate new ID

## NAME

ida\_get\_new - allocate new ID

## SYNOPSIS

**int ida\_get\_new(struct ida \*** *ida***, int \*** *p\_id***);**

## ARGUMENTS

*ida*

idr handle

*p\_id*

pointer to the allocated handle

## DESCRIPTION

Allocate new ID. It should be called with any required locks.

If memory is required, it will return **-EAGAIN**, you should unlock and go back to the **idr\_pre\_get** call. If the idr is full, it will return **-ENOSPC**.

*p\_id* returns a value in the range **0** ... **0x7fffffff**.

## COPYRIGHT
