Commit | Line | Data |
---|---|---|
920dae64 AT |
1 | <html> |
2 | <head> | |
3 | <title>SPARC Architectural Model: Device and Utility API</title> | |
4 | </head> | |
5 | <body bgcolor="#FFFFFF" LANG="en-US"> | |
6 | | |
7 | <h2> | |
8 | mmi_register_modinfo_cb</h2> | |
9 | ||
10 | <h4> | |
11 | NAME</h4> | |
12 | ||
13 | <ul>mmi_register_modinfo_cb - Register module information callback</ul> | |
14 | ||
15 | <h4> | |
16 | SYNOPSIS</h4> | |
17 | ||
18 | <ul> | |
19 | <font color="#0000FF">#include "mmi.h"</font> | |
20 | <p>typedef void (*<i>fn_modinfo_cb</i>) (void *<i>cb_data</i>); | |
21 | <p>bool_t mmi_register_modinfo_cb (module_t *<i>module</i>, fn_modinfo <i>fn</i>); | |
22 | </ul> | |
23 | ||
24 | <h4> | |
25 | DESCRIPTION</h4> | |
26 | ||
27 | <ul> | |
28 | Register <i>fn</i> callback for <i>module</i>. | |
29 | This function is called via <b>modinfo</b> UI command. | |
30 | It is expected to print any interesting information about the module (using <i>printf</i>.) | |
31 | </ul> | |
32 | ||
33 | <h4> | |
34 | RETURN VALUES</h4> | |
35 | ||
36 | <ul>Returns FALSE if <i>module</i> is not valid.</ul> | |
37 | ||
38 | <h4> | |
39 | ERRORS</h4> | |
40 | ||
41 | <h4> | |
42 | USAGE</h4> | |
43 | ||
44 | <h4> | |
45 | SEE ALSO</h4> | |
46 | <ul> | |
47 | <a href="modinfo.html">modinfo UI command</a> | |
48 | </ul> | |
49 | ||
50 | <h4> | |
51 | WARNINGS</h4> | |
52 | | |
53 | </body> | |
54 | </html> |