.\" This manpage has been automatically generated by docbook2man
.\" from a DocBook document. This tool can be found at:
.\"
.\" Please send any bug reports, improvements, comments, patches,
.\" etc. to Steve Cheng .
.TH "IDR_PRE_GET" "9" "09 October 2005" "" ""
.SH NAME
idr_pre_get \- reserver resources for idr allocation
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int idr_pre_get (struct idr * \fIidp\fB, unsigned \fIgfp_mask\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIidp\fB\fR
idr handle
.TP
\fB\fIgfp_mask\fB\fR
memory allocation flags
.SH "DESCRIPTION"
.PP
This function should be called prior to locking and calling the
following function. It preallocates enough memory to satisfy
the worst possible allocation.
.PP
If the system is REALLY out of memory this function returns 0,
otherwise 1.