.\" 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 "PLATFORM_MATCH" "" "06 October 2005" "" ""
.SH NAME
platform_match \- bind platform device to platform driver.
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
int platform_match (struct device * \fIdev\fB, struct device_driver * \fIdrv\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIdev\fB\fR
device.
.TP
\fB\fIdrv\fB\fR
driver.
.SH "PLATFORM DEVICE IDS ARE ASSUMED TO BE ENCODED LIKE THIS"
.PP
``'', where is a short description of the
type of device, like ``pci'' or ``floppy'', and is the
enumerated instance of the device, like '0' or '42'.
Driver IDs are simply ``''\&.
So, extract the from the device, and compare it against
the name of the driver. Return whether they match or not.