mca_set_adapter_procfn

Section: Kernel Hacker's Manual (9)
Updated: mca_set_adapter_procfn
Index Return to Main Contents
 

NAME

mca_set_adapter_procfn - Set the /proc callback  

SYNOPSIS

void mca_set_adapter_procfn (int slot, MCA_ProcFn procfn, void*dev);  

ARGUMENTS

slot

 slot to configure
procfn

 callback function to call for /proc
dev

 device information passed to the callback
 

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 procfn when a module unregisters, thus preventing kernel crashes and other such nastiness.


 

Index

NAME
SYNOPSIS
ARGUMENTS
DESCRIPTION

This document was created by man2html, using the manual pages.
Time: 03:52:41 GMT, June 12, 2005