.\" 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 "MPT_REGISTER" "9" "09 October 2005" "" "" .SH NAME mpt_register \- Register protocol-specific main callback handler. .SH SYNOPSIS "SYNOPSIS" .sp \fB .sp int mpt_register (MPT_CALLBACK \fIcbfunc\fB, MPT_DRIVER_CLASS \fIdclass\fB); \fR .SH "ARGUMENTS" .TP \fB\fIcbfunc\fB\fR callback function pointer .TP \fB\fIdclass\fB\fR Protocol driver's class (MPT_DRIVER_CLASS enum value) .SH "DESCRIPTION" .PP This routine is called by a protocol-specific driver (SCSI host, LAN, SCSI target) to register it's reply callback routine. Each protocol-specific driver must do this before it will be able to use any IOC resources, such as obtaining request frames. .SH "NOTES" .PP The SCSI protocol driver currently calls this routine thrice in order to register separate callbacks; one for ``normal'' SCSI IO; one for MptScsiTaskMgmt requests; one for Scan/DV requests. .PP Returns a positive integer valued ``handle'' in the range (and S.O.D. order) {N,...,7,6,5,...,1} if successful. Any non-positive return value (including zero!) should be considered an error by the caller.