Re: Wanted: documentation on KLD modules
> 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) thisthe 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 [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Re: Wanted: documentation on KLD modules
Hello, this might help: http://www.daemonnews.org/200010/blueprints.html Andrew On Thu, 15 Feb 2001, [iso-8859-1] Mårten Wikström wrote: > 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? Are there any > documents describing KLD in more depth than the tutorial in the FreeBSD > handbook and the man page for KLD? I've search the net but haven't found > anything yet. > > Any help appreciated > > thanks > > Mårten > > > To Unsubscribe: send mail to [EMAIL PROTECTED] > with "unsubscribe freebsd-hackers" in the body of the message > *-. | Andrew R. Reiter | [EMAIL PROTECTED] | "It requires a very unusual mind | to undertake the analysis of the obvious" -- A.N. Whitehead To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message
Wanted: documentation on KLD modules
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? Are there any documents describing KLD in more depth than the tutorial in the FreeBSD handbook and the man page for KLD? I've search the net but haven't found anything yet. Any help appreciated thanks Mårten To Unsubscribe: send mail to [EMAIL PROTECTED] with "unsubscribe freebsd-hackers" in the body of the message