Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jun 2001 15:14:41 -0700 (PDT)
From:      Pankaj Chhabra <pankaj_chhabra@yahoo.com>
To:        freebsd-doc@FreeBSD.org
Subject:   Problem with Module Documentation example
Message-ID:  <20010603221441.1727.qmail@web10906.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
Hi,

Module documentation example has a a problem. In the
example, the last line has 

DECLARE_MODULE(skeleton, skel_loader, SI_SUB_KLD,
SI_ORDER_ANY);

This is wrong, it should be 

*******************************************************
struct moduledata mydata = { "skeleton", skel_loader);
DECLARE_MODULE(skeleton, mydata, SI_SUB_KLD,
SI_ORDER_ANY);
*******************************************************

NOTE:
Although the documentation by Andrew Reiter says that
second field is a pointer to the structure moduledata,
pointer actually did not work. I had to pass the
structure as the argument.


Pankaj Chhabra
Sr. Software Engineer

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-doc" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20010603221441.1727.qmail>