idr_pre_get 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_PRE_GET(9)		Basic Kernel Library Functions		IDR_PRE_GET(9)

NAME
       idr_pre_get - reserve resources for idr allocation

SYNOPSIS
       int idr_pre_get(struct idr * idp, gfp_t gfp_mask);

ARGUMENTS
       idp
	   idr handle

       gfp_mask
	   memory allocation flags

DESCRIPTION
       This function should be called prior to calling the idr_get_new*
       functions. It preallocates enough memory to satisfy the worst possible
       allocation. The caller should pass in GFP_KERNEL if possible. This of
       course requires that no spinning locks be held.

       If the system is REALLY out of memory this function returns 0,
       otherwise 1.

COPYRIGHT
Kernel Hackers Manual 3.8.	   June 2014			IDR_PRE_GET(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