From: Arnaldo Carvalho de Melo <acme@conectiva.com.br>
To: dipi_k@123india.com
Cc: linux-kernel@vger.kernel.org
Subject: Re: net_device list in kernel
Date: Wed, 13 Jun 2001 16:35:10 -0300 [thread overview]
Message-ID: <20010613163510.P941@conectiva.com.br> (raw)
In-Reply-To: <20010613191418.17176.cpmta@c009.snv.cp.net>
In-Reply-To: <20010613191418.17176.cpmta@c009.snv.cp.net>; from dipi_k@123india.com on Wed, Jun 13, 2001 at 12:14:18PM -0700
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
prev parent reply other threads:[~2001-06-13 19:35 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-06-13 19:14 net_device list in kernel dipi_k
2001-06-13 19:35 ` Arnaldo Carvalho de Melo [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20010613163510.P941@conectiva.com.br \
--to=acme@conectiva.com.br \
--cc=dipi_k@123india.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).