.\" 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 "DRIVER_PROBE_DEVICE" "9" "09 October 2005" "" "" .SH NAME driver_probe_device \- attempt to bind device & driver. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int driver_probe_device (struct device_driver * \fIdrv\fB, struct device * \fIdev\fB); \fR .SH "ARGUMENTS" .TP \fB\fIdrv\fB\fR driver. .TP \fB\fIdev\fB\fR device. .SH "DESCRIPTION" .PP First, we call the bus's match function, if one present, 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 .PP This function returns 1 if a match is found, an error if one occurs (that is not -ENODEV or -ENXIO), and 0 otherwise. .PP This function must be called with \fIdev\fR->sem held.