idr_get_new_above man page on Oracle

Man page or keyword search:  
man Server   33470 pages
apropos Keyword Search (all sections)
Output format
Oracle logo
[printable version]

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 id

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 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.

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

COPYRIGHT
Kernel Hackers Manual 3.8.	   June 2014		  IDR_GET_NEW_ABOVE(9)
[top]

List of man pages available for Oracle

Copyright (c) for man pages and the logo by the respective OS vendor.

For those who want to learn more, the polarhome community provides shell access and support.

[legal] [privacy] [GNU] [policy] [cookies] [netiquette] [sponsors] [FAQ]
Tweet
Polarhome, production since 1999.
Member of Polarhome portal.
Based on Fawad Halim's script.
....................................................................
Vote for polarhome
Free Shell Accounts :: the biggest list on the net