'\" t .\" Title: reallocate_resource .\" Author: [FIXME: author] [see http://docbook.sf.net/el/author] .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: June 2017 .\" Manual: Hardware Interfaces .\" Source: Kernel Hackers Manual 4.11.3 .\" Language: English .\" .TH "REALLOCATE_RESOURCE" "9" "June 2017" "Kernel Hackers Manual 4\&.11\&" "Hardware Interfaces" .\" ----------------------------------------------------------------- .\" * 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" reallocate_resource \- allocate a slot in the resource tree given range & alignment\&. The resource will be relocated if the new size cannot be reallocated in the current location\&. .SH "SYNOPSIS" .HP \w'int\ reallocate_resource('u .BI "int reallocate_resource(struct\ resource\ *\ " "root" ", struct\ resource\ *\ " "old" ", resource_size_t\ " "newsize" ", struct\ resource_constraint\ *\ " "constraint" ");" .SH "ARGUMENTS" .PP \fIstruct resource * root\fR .RS 4 root resource descriptor .RE .PP \fIstruct resource * old\fR .RS 4 resource descriptor desired by caller .RE .PP \fIresource_size_t newsize\fR .RS 4 new size of the resource descriptor .RE .PP \fIstruct resource_constraint * constraint\fR .RS 4 the size and alignment constraints to be met\&. .RE .SH "COPYRIGHT" .br