.\" 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_MTD_DEVICE" "" "06 October 2005" "" ""
.SH NAME
get_mtd_device \- obtain a validated handle for an MTD device
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
struct mtd_info * get_mtd_device (struct mtd_info * \fImtd\fB, int \fInum\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fImtd\fB\fR
last known address of the required MTD device
.TP
\fB\fInum\fB\fR
internal device number of the required MTD device
.SH "DESCRIPTION"
.PP
Given a number and NULL address, return the num'th entry in the device
table, if any. Given an address and num == -1, search the device table
for a device with that address and return if it's still present. Given
both, return the num'th driver only if its address matches. Return NULL
if not.