---
name: "ida_get_new_above"
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_get_new_above"
---

# ida\_get\_new\_above(9)

allocate new ID above or equal to a start id

## NAME

ida\_get\_new\_above - allocate new ID above or equal to a start id

## SYNOPSIS

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

## ARGUMENTS

*ida*

ida handle

*starting\_id*

id to start search at

*p\_id*

pointer to the allocated handle

## DESCRIPTION

Allocate new ID above or equal to *starting\_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 **ida\_pre\_get** call. If the ida is full, it will return **-ENOSPC**.

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

## COPYRIGHT
