chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
f610d6d
)
udev: net_id - update examples
author
Kay Sievers
<kay@vrfy.org>
Thu, 6 Dec 2012 20:25:39 +0000
(21:25 +0100)
committer
Kay Sievers
<kay@vrfy.org>
Thu, 6 Dec 2012 20:25:39 +0000
(21:25 +0100)
src/udev/udev-builtin-net_id.c
patch
|
blob
|
history
diff --git
a/src/udev/udev-builtin-net_id.c
b/src/udev/udev-builtin-net_id.c
index ebada80e1bd205ceff1d3233aa14c9aa4adebf6a..97dba3a52a98f768b30350f7145079811c43795a 100644
(file)
--- a/
src/udev/udev-builtin-net_id.c
+++ b/
src/udev/udev-builtin-net_id.c
@@
-18,39
+18,44
@@
***/
/*
***/
/*
- *
p
redictable network interface device names based on:
+ *
P
redictable network interface device names based on:
* - firmware/bios-provided index numbers for on-board devices
* - firmware-provided pci-express hotplug slot index number
* - physical/geographical location of the hardware
* - the interface's MAC address
*
* - firmware/bios-provided index numbers for on-board devices
* - firmware-provided pci-express hotplug slot index number
* - physical/geographical location of the hardware
* - the interface's MAC address
*
- *
t
wo character prefixes based on the type of interface:
+ *
T
wo character prefixes based on the type of interface:
* en -- ethernet
* wl -- wlan
* ww -- wwan
*
* en -- ethernet
* wl -- wlan
* ww -- wwan
*
- *
t
ype of names:
+ *
T
ype of names:
* o<index> -- on-board device index number
* s<slot>[f<function>] -- hotplug slot index number
* x<MAC> -- MAC address
* p<bus>s<slot>[f<function>] -- PCI geographical location
* o<index> -- on-board device index number
* s<slot>[f<function>] -- hotplug slot index number
* x<MAC> -- MAC address
* p<bus>s<slot>[f<function>] -- PCI geographical location
- * p<bus>s<slot>[f<function>][u<port>][
u<port>
][c<config>][i<interface>]
+ * p<bus>s<slot>[f<function>][u<port>][
...
][c<config>][i<interface>]
* -- USB port number chain
*
* -- USB port number chain
*
- * All multi-function devices will carry the [f<function>] number in the
+ * All multi-function
PCI
devices will carry the [f<function>] number in the
* device name, including the function 0 device.
*
* device name, including the function 0 device.
*
- * PCI card with firmware index
+ * For USB devices the fill chain of port numbers of hubs is composed. If the
+ * string would gt longer than the maximum of 15 characters, the name is not
+ * exported. The usual USB configuration == 1 and interface == 0 values are
+ * suppressed.
+ *
+ * PCI ethernet card with firmware index
* ID_NET_NAME_ONBOARD=eno1
* ID_NET_NAME_ONBOARD_LABEL=Ethernet Port 1
*
* ID_NET_NAME_ONBOARD=eno1
* ID_NET_NAME_ONBOARD_LABEL=Ethernet Port 1
*
- * PCI card
+ * PCI
ethernet
card
* /sys/devices/pci0000:00/0000:00:1c.3/0000:05:00.0/net/ens1
* ID_NET_NAME_MAC=enx000000000466
* ID_NET_NAME_PATH=enp5s0
* ID_NET_NAME_SLOT=ens1
*
* /sys/devices/pci0000:00/0000:00:1c.3/0000:05:00.0/net/ens1
* ID_NET_NAME_MAC=enx000000000466
* ID_NET_NAME_PATH=enp5s0
* ID_NET_NAME_SLOT=ens1
*
- * PCI card in hotplug slot with firmware index number:
+ * PCI
ethernet
card in hotplug slot with firmware index number:
* /sys/devices/pci0000:00/0000:00:1c.3/0000:05:00.0/net/ens1
* ID_NET_NAME_MAC=enx000000000466
* ID_NET_NAME_PATH=enp5s0
* /sys/devices/pci0000:00/0000:00:1c.3/0000:05:00.0/net/ens1
* ID_NET_NAME_MAC=enx000000000466
* ID_NET_NAME_PATH=enp5s0