table of contents
other versions
- wheezy 3.2.78-1
IDA_GET_NEW(9) | Basic Kernel Library Functions | IDA_GET_NEW(9) |
NAME¶
ida_get_new - allocate new IDSYNOPSIS¶
int
ida_get_new(struct ida * ida,
int * p_id);
ARGUMENTS¶
idaidr 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.COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |