.TH "mca_set_adapter_procfn" 9 "mca_set_adapter_procfn" "25 May 1998" "Kernel Hacker's Manual" LINUX .SH NAME mca_set_adapter_procfn \- Set the /proc callback .SH SYNOPSIS .B "void" mca_set_adapter_procfn .BI "(int " slot "," .BI "MCA_ProcFn " procfn "," .BI "void*" dev ");" .SH ARGUMENTS .IP "slot" 12 slot to configure .IP "procfn" 12 callback function to call for /proc .IP "dev" 12 device information passed to the callback .SH "DESCRIPTION" 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. This should be called with a NULL \fIprocfn\fP when a module unregisters, thus preventing kernel crashes and other such nastiness.