Re: circular dependency - some tools ?
From: archibald (glop00.5.archibald_at_spamgourmet.com)
Date: Sun, 05 Oct 2003 19:31:49 +0200
>>Since depmod can detect this circular dependency, I thought
>>that a Linux command or a tools could say to me about which
>>functions this circular dependency is.
> You could look at the source code of depmod to see how depmod is
> doing it.
Indeed, it is a way of which I had not thought but in anyway I don't
have time to do it.
>>Perhaps I just have to use a tool like cxref to parse all my
>>source codes to see what symbols are responsible of this
> I haven't much knowledge about device driver programming.
Me too, but if the subject intesrest you, you can read this Howto:
> How do you make linux load a module?
I'm using modprobe to load my modules so on the command line
I'm writing :
> I think for /dev/module1 is loaded
> automagically (provided /etc/modules.conf is set up correctly) if
> you open /dev/module1, so it should be pretty easy to spot in your
> source code.
> But this theory is probably too simple, as you seem to have problems
> spotting the location where the other module is activated.
You are right since I've all source code of my modules ( module1 and
module2 ) i can easily look for this problem but my second problem which
is not related to this group is that I'm in hurry so I should like to
have a simple command which could help and avoid me to parse all my
> I'd be curious to know how you access q module from another.
In a module you can export some symbols with EXPORT_SYMBOL preprocesseur
directive. After this, the other modules can have access to all symbols
you have exported. That is a simple explanation, best is you look at the
link I gave above.