I wanted to see which driver was associated with some of the network interfaces listed by ip link
. My first thought was to find the network interfaces in /dev
and look at the device major and minor numbers to determine the associated driver. However, network interfaces don't appear under /dev
.
I'm have a feeling I'm misunderstanding something fundamental about the Linux network stack (perhaps because multiple kernel modules can be involved because of netfilter/iptables/tc), so please address this if so. My naive questions are:
- How do you determine which driver performs I/O for a particular network interface?
- Why don't Linux network interfaces appear in
/dev
?
lspci
command should list the driver, I guess. – Ramesh Sep 19 '14 at 17:53lshw -c network
– PersianGulf Sep 19 '14 at 18:01