ida_get_new_above(9)

ida_get_new_above9

Allocate new id above or equal to a start id

Usage

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

Overview

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.

Releases

3 releases since Debian 7 (Wheezy); the text changed 2 times.

  1. 7
  2. 8
  3. 9

From linux-manual-4.9 4.9.228-1 in Debian 9 (Stretch). Parsed by carta from the page's man source.