From owner-freebsd-hackers Thu Feb 15 15: 9: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.dis.org (mass.dis.org [216.240.45.41]) by hub.freebsd.org (Postfix) with ESMTP id 6F56137B401 for ; Thu, 15 Feb 2001 15:08:55 -0800 (PST) Received: from mass.dis.org (localhost [127.0.0.1]) by mass.dis.org (8.11.1/8.11.1) with ESMTP id f1FN9Pw00554; Thu, 15 Feb 2001 15:09:25 -0800 (PST) (envelope-from msmith@mass.dis.org) Message-Id: <200102152309.f1FN9Pw00554@mass.dis.org> X-Mailer: exmh version 2.1.1 10/15/1999 To: =?iso-8859-1?Q?M=E5rten_Wikstr=F6m?= Cc: "'freebsd-hackers@freebsd.org'" Subject: Re: Wanted: documentation on KLD modules In-reply-to: Your message of "Thu, 15 Feb 2001 09:32:43 +0100." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Thu, 15 Feb 2001 15:09:25 -0800 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > I'm trying to convert a PCI network interface device driver to a KLD module. > However, the driver is depending on a pseudo-device and the pseudo-device is > in turn dependent on the device driver. How do I specify dependencies > between KLD modules and what type of module shall they be? With a circular dependancy like this, I'd actually recommend building the two together into a single module file. There doesn't seem to be any utility in having them in separate files at all. However, should you wish to have a module depend on another module, you should use the MODULE_DEPEND macro in your sources. MODULE_DEPEND(this, other, min, preferred, max) this the name of this module other the name of the required module min minimum version of the other module acceptable preferred preferred version of the other module max highest version of the module acceptable -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message