Re: Question of kernel module dependency

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

I modified a mac driver and on top of that driver I made a new module.
The new module manages some information from the mac driver, so, they need
to communicate each other.
I don't want to put the new module inside the mac driver.
So, I got this starage situation:)
Usually is there not any case that two module have dependency to each other?


Umm well it does happen that Module A has dependencies on Module B,
but having interdependencies is well a bit unfortunate on the design
part.

But you can always have a model where module A directly depend on
module B and  having module B calling functions of A through
callbacks. This way B can be loaded without requiring module A.
Of course best design would be to avoid this interdependency.

Hope this helps.

--
Ranjan

--
Kernelnewbies: Help each other learn about the Linux kernel.
Archive:       http://mail.nl.linux.org/kernelnewbies/
FAQ:           http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux