.\" 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 "MCA_SET_ADAPTER_PROCFN" "" "06 October 2005" "" ""
.SH NAME
mca_set_adapter_procfn \- Set the /proc callback
.SH SYNOPSIS
"SYNOPSIS"
.sp
\fB
.sp
void mca_set_adapter_procfn (int \fIslot\fB, MCA_ProcFn \fIprocfn\fB, void* \fIproc_dev\fB);
\fR
.SH "ARGUMENTS"
.TP
\fB\fIslot\fB\fR
slot to configure
.TP
\fB\fIprocfn\fB\fR
callback function to call for /proc
.TP
\fB\fIproc_dev\fB\fR
-- undescribed --
.SH "DESCRIPTION"
.PP
This sets up an information callback for /proc/mca/slot?. The
function is called with the buffer, slot, and device pointer (or
some equally informative context information, or nothing, if you
prefer), and is expected to put useful information into the
buffer. The adapter name, ID, and POS registers get printed
before this is called though, so don't do it again.
.PP
This should be called with a NULL \fIprocfn\fR when a module
unregisters, thus preventing kernel crashes and other such
nastiness.