.\" 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 "GET_RESOURCE" "9" "09 October 2005" "" ""
.SH NAME
get_resource \-
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct pci_resource * get_resource (struct pci_resource ** \fIhead\fB, u32 \fIsize\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIhead\fB\fR
the list to search for resources
.TP
\fB\fIsize\fB\fR
the size limit to use
.SH "DESCRIPTION"
.PP
This function sorts the resource list by size and then
returns the first node of ``size'' length. If it finds a node
larger than ``size'' it will split it up.
.PP
size must be a power of two.