2001-07-25 15:36:47

by David CM Weber

[permalink] [raw]
Subject: device struct

I'm looking at some old (circa v2.2.5 of the kernel) sample code,
referring to the networking system. It refers to a structure named
"device". Was this replaced with something else?

On a similar note, is there a "good" way of finding this data myself?
I've been using ctags, and this is of limited use. (Sometimes good,
sometimes bad).

Thanks for bearing with me,


Dave Weber
Backbone Security, Inc.


2001-07-25 16:31:14

by Julien Laganier

[permalink] [raw]
Subject: Re: device struct

David CM Weber wrote:
>
> I'm looking at some old (circa v2.2.5 of the kernel) sample code,
> referring to the networking system. It refers to a structure named
> "device". Was this replaced with something else?
>
> On a similar note, is there a "good" way of finding this data myself?
> I've been using ctags, and this is of limited use. (Sometimes good,
> sometimes bad).
>

Use CSCOPE, available at http://cscope.sourceforge.net
It's very usefull !

--
"Memory is like gasoline. You use it up when you are running. Of
course you get it all back when you reboot..."; Actual explanation
obtained from the Micro$oft help desk.
--

Julien Laganier
Student Intern
Sun Microsystem Laboratories

2001-07-25 16:42:55

by Randy.Dunlap

[permalink] [raw]
Subject: Re: device struct

Julien Laganier wrote:
>
> David CM Weber wrote:
> >
> > I'm looking at some old (circa v2.2.5 of the kernel) sample code,
> > referring to the networking system. It refers to a structure named
> > "device". Was this replaced with something else?
> >
> > On a similar note, is there a "good" way of finding this data myself?
> > I've been using ctags, and this is of limited use. (Sometimes good,
> > sometimes bad).
> >
>
> Use CSCOPE, available at http://cscope.sourceforge.net
> It's very usefull !

I agree that cscope is useful, but the simple answer to David's
question is that struct device was replaced with struct net_device
in 2.4 so that the more generic struct device could be used for
more generic purposes.

~Randy