From: Stephen Hemminger <stephen@networkplumber.org>
To: Warren Turkal <wt@penguintechs.org>
Cc: netdev@vger.kernel.org
Subject: Re: dummy ethernet devices and sysfs
Date: Wed, 13 Jan 2016 12:16:09 -0800 [thread overview]
Message-ID: <20160113121609.139af5a2@xeon-e3> (raw)
In-Reply-To: <CAB_jBhhyNLeYSuOQUXPTtU3LaVdjXtD=jS0kuvMckDjyOz1Xzg@mail.gmail.com>
On Wed, 13 Jan 2016 11:58:01 -0800
Warren Turkal <wt@penguintechs.org> wrote:
> Hi,
>
> I was looking through sysfs today, and something interesting jumped
> out at me after I loaded the dummy module.
>
> This directory exists: /sys/class/net/wlp2s0/device/
>
> This directory does not: /sys/class/net/dummy0/device/
>
> I can find the module that is providing the wlp2s0 device with the following:
> $ ls /sys/class/net/wlp2s0/device/driver/module/drivers/
> pci:iwlwifi
>
> Shouldn't dummy have something similar so that one can figure out
> which module is providing the dummy0 device?
>
> FWIW, I am running the latest Ubuntu 15.10 kernel (4.2.0-23-generic).
>
> Thanks,
> wt
If you look carefully at the /sys/class/net/wlp2s0/device/ you will
see it is a symlink to the underlying /sys directory for the hardware (PCI)
device. Since dummy (and other virtual interfaces) have no hardware,
there is no symlink.
next prev parent reply other threads:[~2016-01-13 20:16 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-01-13 19:58 dummy ethernet devices and sysfs Warren Turkal
2016-01-13 20:16 ` Stephen Hemminger [this message]
2016-01-13 22:54 ` Warren Turkal
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=20160113121609.139af5a2@xeon-e3 \
--to=stephen@networkplumber.org \
--cc=netdev@vger.kernel.org \
--cc=wt@penguintechs.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).