From owner-freebsd-doc Sun Jun 3 15:14:44 2001 Delivered-To: freebsd-doc@freebsd.org Received: from web10906.mail.yahoo.com (web10906.mail.yahoo.com [216.136.131.42]) by hub.freebsd.org (Postfix) with SMTP id 9673937B405 for ; Sun, 3 Jun 2001 15:14:41 -0700 (PDT) (envelope-from pankaj_chhabra@yahoo.com) Message-ID: <20010603221441.1727.qmail@web10906.mail.yahoo.com> Received: from [139.87.147.103] by web10906.mail.yahoo.com; Sun, 03 Jun 2001 15:14:41 PDT Date: Sun, 3 Jun 2001 15:14:41 -0700 (PDT) From: Pankaj Chhabra Subject: Problem with Module Documentation example To: freebsd-doc@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: owner-freebsd-doc@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.org 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