All of lore.kernel.org
 help / color / mirror / Atom feed
* net_device list in kernel
@ 2001-06-13 19:14 dipi_k
  2001-06-13 19:35 ` Arnaldo Carvalho de Melo
  0 siblings, 1 reply; 2+ messages in thread
From: dipi_k @ 2001-06-13 19:14 UTC (permalink / raw)
  To: linux-kernel


Hi,
  
 I have one doubt.

  There is a list of the devices(net_device{} structures) maintained in kernel which has all the interfaces initialised by that time. This list is refrenced by dev_base variable.

 I need following info

1) does kernel maintain a global variable which keeps the count of net_device{} in above list?

2) Is this list modified(net_device{} added or deleted ) once it's initialised at boot time?

PLEASE reply to my PERSONAL account. I haven't subscribed to this mailing list.

thanks & regards,
Deepika


______________________________________________________
123India.com - India's Premier Portal 
Get your Free Email Account at http://www.123india.com
		     
------- End of forwarded message -------


______________________________________________________
123India.com - India's Premier Portal 
Get your Free Email Account at http://www.123india.com



^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: net_device list in kernel
  2001-06-13 19:14 net_device list in kernel dipi_k
@ 2001-06-13 19:35 ` Arnaldo Carvalho de Melo
  0 siblings, 0 replies; 2+ messages in thread
From: Arnaldo Carvalho de Melo @ 2001-06-13 19:35 UTC (permalink / raw)
  To: dipi_k; +Cc: linux-kernel

Em Wed, Jun 13, 2001 at 12:14:18PM -0700, dipi_k@123india.com escreveu:
> 
> Hi,
>   
>  I have one doubt.
> 
>   There is a list of the devices(net_device{} structures) maintained in kernel which has all the interfaces initialised by that time. This list is refrenced by dev_base variable.
> 
>  I need following info
> 
> 1) does kernel maintain a global variable which keeps the count of net_device{} in above list?

not that I'm aware
 
> 2) Is this list modified(net_device{} added or deleted ) once it's initialised at boot time?

Yes, think about loading a module for a network card, it will add one entry
(or more in some cases) to this list, or think about net aliases. Look at
register_netdevice in net/core/dev.c
 
- Arnaldo

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2001-06-13 19:35 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2001-06-13 19:14 net_device list in kernel dipi_k
2001-06-13 19:35 ` Arnaldo Carvalho de Melo

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.