.\" 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 "MACIO_REQUEST_RESOURCE" "9" "09 October 2005" "" "" .SH NAME macio_request_resource \- Request an MMIO resource .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int macio_request_resource (struct macio_dev * \fIdev\fB, int \fIresource_no\fB, const char * \fIname\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdev\fB\fR pointer to the device holding the resource .TP \fB\fIresource_no\fB\fR resource number to request .TP \fB\fIname\fB\fR resource name .SH "DESCRIPTION" .PP Mark memory region number \fIresource_no\fR associated with MacIO device \fIdev\fR as being reserved by owner \fIname\fR\&. Do not access any address inside the memory regions unless this call returns successfully. .PP Returns 0 on success, or EBUSY on error. A warning message is also printed on failure.