IDR_GET_NEW_ABOVE

Section: (9)
Updated: 09 October 2005
Index Return to Main Contents

 

NAME

idr_get_new_above - allocate new idr entry above or equal to a start id  

SYNOPSIS

"SYNOPSIS"

int idr_get_new_above (struct idr * idp, void * ptr, int starting_id, int * id);  

ARGUMENTS

idp
idr handle
ptr
pointer you want associated with the ide
starting_id
-- undescribed --
id
pointer to the allocated handle
 

DESCRIPTION

This is the allocate id function. 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.

id returns a value in the range 0 ... 0x7fffffff


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 00:02:16 GMT, October 09, 2005