Re: circular dependency - some tools ?

From: archibald (glop00.5.archibald_at_spamgourmet.com)
Date: 10/05/03


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.



Relevant Pages

  • Re: circular dependency - some tools ?
    ... > 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 ...
    (comp.os.linux.development.system)
  • RE: Source Server failing to realise its almost worked in VS 2008
    ... the command line/URL is limited. ... I've a custom source indexing process (we use MKS - not ... VS 2008 will download from the ... "Source code cannot be displayed" stop box. ...
    (microsoft.public.vc.debugger)
  • Re: Compiled with MS FORTRAN 5 my Program executes in colour but not with g95
    ... ANSI.SYS was a TSR that stayed in the background and "trapped" screen writes and looked at what was written to see if it was a command for it to do something. ... COLOR, otoh is a shell command at the user command line so when you write to standard output, it never "sees" the character string and so has no opportunity to do anything. ... source code compiled to a 16 bit executable. ... there isn't ANSI.SYS support for 32-bit, only that for some reason there isn't. ...
    (comp.lang.fortran)
  • Re: How can one distinguish an IDE/ATA(PI) drive from a SCSI drive?
    ... If you dig around in the source code, you'll find that the values are mapped and re-assembled into an OpenVMS device specification deep down at the bottom of the cdrecord.exe source code. ... You can lob SCSI commands at the device and retrieve this data yourself, but OpenVMS doesn't present this data to the user. ... The cdrecord.exe port that the HP folks provided includes mappings for these, and a command procedure wrapper. ...
    (comp.os.vms)
  • Re: [SLE] wipe, clean, etc
    ... >> I have our company's source code on the drive. ... >> Is there a simple command I can run to make sure that the data on the ... They actually sell magnets do that. ... What we do is dissemble the drive, remove the platters from the ...
    (SuSE)