> 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 [EMAIL PROTECTED]
with "unsubscribe freebsd-hackers" in the body of the message

Reply via email to