.\" 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 "BUS_MATCH" "" "06 October 2005" "" "" .SH NAME bus_match \- check compatibility between device & driver. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int bus_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 "DESCRIPTION" .PP First, we call the bus's match function, which should compare the device IDs the driver supports with the device IDs of the device. Note we don't do this ourselves because we don't know the format of the ID structures, nor what is to be considered a match and what is not. .PP If we find a match, we call \fIdrv\fR->probe(\fIdev\fR) if it exists, and call \fBattach\fR above.