lkml.org 
[lkml]   [2001]   [Jun]   [13]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: net_device list in 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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 12:55    [W:0.032 / U:1.820 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site