Re: circular dependency - some tools ?
From: archibald (glop00.5.archibald_at_spamgourmet.com)
Date: 10/05/03
- Next message: Kasper Dupont: "Slow HTTP responses"
- Previous message: Peter T. Breuer: "Re: Error with "make xconfig" in 2.4.23-test6"
- In reply to: Martin Blume: "Re: circular dependency - some tools ?"
- Next in thread: Martin Blume: "Re: circular dependency - some tools ?"
- Reply: Martin Blume: "Re: circular dependency - some tools ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
>>circular dependency.
>>
>
>
> I haven't much knowledge about device driver programming.
Me too, but if the subject intesrest you, you can read this Howto:
http://www.tldp.org/HOWTO/Module-HOWTO/index.html
> How do you make linux load a module?
I'm using modprobe to load my modules so on the command line
I'm writing :
#/sbin/modprobe module1
> 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
source code.
> 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.
- Next message: Kasper Dupont: "Slow HTTP responses"
- Previous message: Peter T. Breuer: "Re: Error with "make xconfig" in 2.4.23-test6"
- In reply to: Martin Blume: "Re: circular dependency - some tools ?"
- Next in thread: Martin Blume: "Re: circular dependency - some tools ?"
- Reply: Martin Blume: "Re: circular dependency - some tools ?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|