2001-10-09 12:02:11

by SATHISH.J

[permalink] [raw]
Subject: Re: Reg-network driver.

Hi stephane,

I have cscope installed to search source files.
I could not find "register_netdevice()" functionthrough it. I want to see
where it calls the driver initialisation.
Please help me out.

Thanks in advance,
Warm regards,
sathish.j
On Tue, 9 Oct 2001, Stephane List wrote:

> On Tue, Oct 09, 2001 at 02:35:37PM +0530, SATHISH.J wrote :
> > Hi all,
> > I am trying to learn network drivers. Trying to initialise the driver we
> > call "register_netdev()". This function in turn calls
> > "register_netdevice()". Please tell me where register_netdevice() is
> > defined. I want to see the code because the init function of the driver is
> > called from function only as I heard. Please tell me where
> > "register_netdevice()" and "unregister_netdevice()" are defined in the
> > code.
> >
> You can see it with :
>
> http://lxr.linux.no/ident?i=register_netdevice
>
>
> You can also install LXR on your own PC.
>
> Stephane
> --
> Stephane LIST -- <[email protected]>
> Alcove, liberating software -- <http://www.alcove.com/>
>


2001-10-09 16:55:04

by Randy.Dunlap

[permalink] [raw]
Subject: Re: Reg-network driver.

Hi,

Maybe you didn't tell cscope to search in linux/net/core/* .
It's there, in dev.c .

~Randy

"SATHISH.J" wrote:
>
> Hi stephane,
>
> I have cscope installed to search source files.
> I could not find "register_netdevice()" functionthrough it. I want to see
> where it calls the driver initialisation.
> Please help me out.
>
> Thanks in advance,
> Warm regards,
> sathish.j
> On Tue, 9 Oct 2001, Stephane List wrote:
>
> > On Tue, Oct 09, 2001 at 02:35:37PM +0530, SATHISH.J wrote :
> > > Hi all,
> > > I am trying to learn network drivers. Trying to initialise the driver we
> > > call "register_netdev()". This function in turn calls
> > > "register_netdevice()". Please tell me where register_netdevice() is
> > > defined. I want to see the code because the init function of the driver is
> > > called from function only as I heard. Please tell me where
> > > "register_netdevice()" and "unregister_netdevice()" are defined in the
> > > code.
> > >
> > You can see it with :
> >
> > http://lxr.linux.no/ident?i=register_netdevice
> >
> > You can also install LXR on your own PC.

2001-10-10 03:43:36

by Bernd Eckenfels

[permalink] [raw]
Subject: Re: Reg-network driver.

In article <Pine.LNX.4.10.10110091750390.11843-100000@blrmail> you wrote:
> I have cscope installed to search source files.
> I could not find "register_netdevice()" functionthrough it. I want to see
> where it calls the driver initialisation.

:) You should use more sophistacated and complex, very high tech new source
browsing tools like find and grep instead :) It's of course in the network
core.

Greetings
Bernd