IDR_PRE_GET

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

 

NAME

idr_pre_get - reserver resources for idr allocation  

SYNOPSIS

"SYNOPSIS"

int idr_pre_get (struct idr * idp, unsigned gfp_mask);  

ARGUMENTS

idp
idr handle
gfp_mask
memory allocation flags
 

DESCRIPTION

This function should be called prior to locking and calling the following function. It preallocates enough memory to satisfy the worst possible allocation.

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


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

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