Re: question concerning modules

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

 



You can do away by using function pointers.

If A is to be loaded first, then call B functions using
functions pointers in A, write a function in A which initializes these
function pointer. When B gets loaded, it's initialization routine can call
A's function to initialize these function pointer. Ofcourse, you can't use
these function pointer, unless B is loaded.

There could be many others ways to do this,
Hope this helps.

cheers,
Madhu


On Mon, 17 Feb 2003, nils wrote:

> Hello,
> 
> I have a little question concerning modules:
> 
> In case I have the modules a and b.
> 
> Is it right, that it isn't possible to have references from a to b and from b to a?
> 
> How can I achieve?
> I want to call procedures from a in b, and also some from b in a?
> 
> Do I have to write it as one module, or is there a better way?
> 
> Thanks,
> Nils
> 
> --
> Kernelnewbies: Help each other learn about the Linux kernel.
> Archive:       http://mail.nl.linux.org/kernelnewbies/
> FAQ:           http://kernelnewbies.org/faq/
> 

--
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