'\" t .\" Title: ida_simple_get .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: January 2017 .\" Manual: Basic Kernel Library Functions .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "IDA_SIMPLE_GET" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Basic Kernel Library Functions" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" ida_simple_get \- get a new id\&. .SH "SYNOPSIS" .HP \w'int\ ida_simple_get('u .BI "int ida_simple_get(struct\ ida\ *\ " "ida" ", unsigned\ int\ " "start" ", unsigned\ int\ " "end" ", gfp_t\ " "gfp_mask" ");" .SH "ARGUMENTS" .PP \fIida\fR .RS 4 the (initialized) ida\&. .RE .PP \fIstart\fR .RS 4 the minimum id (inclusive, < 0x8000000) .RE .PP \fIend\fR .RS 4 the maximum id (exclusive, < 0x8000000 or 0) .RE .PP \fIgfp_mask\fR .RS 4 memory allocation flags .RE .SH "DESCRIPTION" .PP Allocates an id in the range start <= id < end, or returns \-ENOSPC\&. On memory allocation failure, returns \-ENOMEM\&. .PP Use \fBida_simple_remove\fR to get rid of an id\&. .SH "COPYRIGHT" .br