table of contents
other versions
- wheezy 3.2.78-1
IDR_GET_NEW_ABOVE(9) | Basic Kernel Library Functions | IDR_GET_NEW_ABOVE(9) |
NAME¶
idr_get_new_above - allocate new idr entry above or equal to a start idSYNOPSIS¶
int
idr_get_new_above(struct idr * idp,
void * ptr, int starting_id,
int * id);
ARGUMENTS¶
idpidr handle
ptr
pointer you want associated with the id
starting_id
id to start search at
id
pointer to the allocated handle
DESCRIPTION¶
This is the allocate id function. It should be called with any required locks. If allocation from IDR's private freelist fails, idr_get_new_above will return -EAGAIN. The caller should retry the idr_pre_get call to refill IDR's preallocation and then retry the idr_get_new_above call. If the idr is full idr_get_new_above will return -ENOSPC.COPYRIGHT¶
March 2016 | Kernel Hackers Manual 3.2. |