The second argument to DECLARE_MODULE is a moduledata_t, not a

modeventhand_t.
This commit is contained in:
Dima Dorfman 2001-07-19 10:37:35 +00:00
parent 90c1dd3801
commit f312a3debb
Notes: svn2git 2020-12-08 03:00:23 +00:00
svn path=/head/; revision=9964
2 changed files with 16 additions and 4 deletions
en_US.ISO8859-1/books
arch-handbook/driverbasics
developers-handbook/driverbasics

View file

@ -1,7 +1,7 @@
<!--
The FreeBSD Documentation Project
$FreeBSD: doc/en_US.ISO8859-1/books/developers-handbook/driverbasics/chapter.sgml,v 1.6 2001/05/14 03:15:18 murray Exp $
$FreeBSD: doc/en_US.ISO8859-1/books/developers-handbook/driverbasics/chapter.sgml,v 1.7 2001/07/06 13:02:52 dd Exp $
-->
<chapter id="driverbasics">
@ -100,7 +100,13 @@ skel_loader(struct module *m, int what, void *arg)
/* Declare this module to the rest of the kernel */
DECLARE_MODULE(skeleton, skel_loader, SI_SUB_KLD, SI_ORDER_ANY);</programlisting>
static moduledata_t skel_mod = {
"skel",
skel_loader,
NULL
};
DECLARE_MODULE(skeleton, skel_mod, SI_SUB_KLD, SI_ORDER_ANY);</programlisting>
<sect2>

View file

@ -1,7 +1,7 @@
<!--
The FreeBSD Documentation Project
$FreeBSD: doc/en_US.ISO8859-1/books/developers-handbook/driverbasics/chapter.sgml,v 1.6 2001/05/14 03:15:18 murray Exp $
$FreeBSD: doc/en_US.ISO8859-1/books/developers-handbook/driverbasics/chapter.sgml,v 1.7 2001/07/06 13:02:52 dd Exp $
-->
<chapter id="driverbasics">
@ -100,7 +100,13 @@ skel_loader(struct module *m, int what, void *arg)
/* Declare this module to the rest of the kernel */
DECLARE_MODULE(skeleton, skel_loader, SI_SUB_KLD, SI_ORDER_ANY);</programlisting>
static moduledata_t skel_mod = {
"skel",
skel_loader,
NULL
};
DECLARE_MODULE(skeleton, skel_mod, SI_SUB_KLD, SI_ORDER_ANY);</programlisting>
<sect2>