public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: Chris Stankevitz <chrisstankevitz@gmail.com>
To: "gentoo-user@lists.gentoo.org" <gentoo-user@lists.gentoo.org>
Subject: [gentoo-user] Without udev, who/what names ethernet devices?
Date: Thu, 6 Jun 2013 21:12:58 -0700	[thread overview]
Message-ID: <CAPi0pstCEOxGgDEDE+ycRDkcg+5oObF2RCv-7fta=NNX1LkFBA@mail.gmail.com> (raw)

Hello,

A USB serial device is identified by the characters "/dev/ttyUSB0".
One might call this string a "device on your filesystem" and it can be
opened/closed just like any other entry in the filesystem.

An ethernet device is sometimes represented by the string "eth0".
Regarding this string "eth0":

1. What does this string represent?  Is it a file on a filesystem?
(no!)  Is it okay for me to call it an "ethernet *device*"

2. Assuming udev is not running, who/what comes up with the name
"eth0"?  How does that person/thing know how many ethernet devices
there are and in what order to enumerate them?  What happens if
ethernet devices are dynamically added (e.g. a USB ethernet device or
a driver being loaded/unloaded)?

3. How does (2) change when udev is running?

Thank you,

Chris


             reply	other threads:[~2013-06-07  4:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-06-07  4:12 Chris Stankevitz [this message]
2013-06-07  8:06 ` [gentoo-user] Without udev, who/what names ethernet devices? Alan McKinnon
2013-06-07 13:47   ` Mick
2013-06-07 15:05   ` Chris Stankevitz
2013-06-07 18:09     ` Samuli Suominen
2013-06-07 18:12       ` Samuli Suominen
2013-06-07 18:35         ` Chris Stankevitz

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='CAPi0pstCEOxGgDEDE+ycRDkcg+5oObF2RCv-7fta=NNX1LkFBA@mail.gmail.com' \
    --to=chrisstankevitz@gmail.com \
    --cc=gentoo-user@lists.gentoo.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