IDR_GET_NEW

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

 

NAME

idr_get_new - allocate new idr entry  

SYNOPSIS

"SYNOPSIS"

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

ARGUMENTS

idp
idr handle
ptr
pointer you want associated with the ide
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