---
name: "ida_simple_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_simple_get"
---

# ida\_simple\_get(9)

get a new id.

## NAME

ida\_simple\_get - get a new id.

## SYNOPSIS

**int ida\_simple\_get(struct ida \*** *ida***, unsigned int** *start***, unsigned int** *end***, gfp\_t** *gfp\_mask***);**

## ARGUMENTS

*ida*

the (initialized) ida.

*start*

the minimum id (inclusive, \< 0x8000000)

*end*

the maximum id (exclusive, \< 0x8000000 or 0)

*gfp\_mask*

memory allocation flags

## DESCRIPTION

Allocates an id in the range start \<= id \< end, or returns -ENOSPC. On memory allocation failure, returns -ENOMEM.

Use **ida\_simple\_remove** to get rid of an id.

## COPYRIGHT
