linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Whitespaces in ID_VENDOR and ID_MODEL
@ 2009-01-05 22:26 Marcel Holtmann
  2009-01-05 22:59 ` Kay Sievers
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Marcel Holtmann @ 2009-01-05 22:26 UTC (permalink / raw)
  To: linux-hotplug

[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain; charset="windows-1254", Size: 2232 bytes --]

Hi Kay,

so I was playing with adding environment variables to devices in the
udev database for later easy enumeration. And I like having ID_VENDOR
and ID_MODEL available and would like to extend this even to PCI and
SDIO in the future, but why are all whitespace replaced with "_".

P: /devices/pci0000:00/0000:00:1a.1/usb3/3-1/3-1:1.0/ttyUSB0/tty/ttyUSB0
N: ttyUSB0
S: char/188:0
S: serial/by-path/pci-0000:00:1a.1-usb-0:1:1.0-port0
S: serial/by-id/usb-Novatel_Wireless_Novatel_Wireless_HSUPA_Modem_356846015115701-if00-port0
E: UDEV_LOG=3
E: DEVPATH=/devices/pci0000:00/0000:00:1a.1/usb3/3-1/3-1:1.0/ttyUSB0/tty/ttyUSB0
E: MAJOR\x188
E: MINOR=0
E: DEVNAME=/dev/ttyUSB0
E: ID_PORT=0
E: ID_PATH=pci-0000:00:1a.1-usb-0:1:1.0
E: ID_VENDOR=Novatel_Wireless
E: ID_MODEL=Novatel_Wireless_HSUPA_Modem
E: ID_REVISION\000
E: ID_SERIAL=Novatel_Wireless_Novatel_Wireless_HSUPA_Modem_356846015115701
E: ID_SERIAL_SHORT56846015115701
E: ID_TYPE=generic
E: ID_BUS=usb
E: ID_IFACE\0
E: ID_MODEM_GSM=1
E: ID_MODEM_PROBED=1
E: DEVLINKS=/dev/char/188:0 /dev/serial/by-path/pci-0000:00:1a.1-usb-0:1:1.0-port0 /dev/serial/by-id/usb-Novatel_Wireless_Novatel_Wireless_HSUPA_Modem_356846015115701-if00-port0

This is one of my UMTS modem sticks and the corresponding USB details
are this:

T:  Bus\x03 Lev\x01 Prnt\x01 Port\0 Cnt\x01 Dev#=  3 Spd\x12  MxCh= 0
D:  Ver= 1.10 Cls\0(>ifc ) Sub\0 Prot\0 MxPSd #Cfgs=  1
P:  Vendor\x1410 ProdIDD00 Rev= 0.00
S:  Manufacturer=Novatel Wireless
S:  Product=Novatel Wireless HSUPA Modem
S:  SerialNumber56846015115701
C:* #Ifs= 2 Cfg#= 1 Atr  MxPwrP0mA
I:* If#= 0 Alt= 0 #EPs= 3 Clsÿ(vend.) Subÿ Protÿ Driver=option
E:  Ad(I) Atr\x03(Int.) MxPS=  16 Ivl\x128ms
E:  Ad‚(I) Atr\x02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad\x02(O) Atr\x02(Bulk) MxPS=  64 Ivl=0ms
I:* If#= 1 Alt= 0 #EPs= 2 Clsÿ(vend.) Subÿ Protÿ Driver=option
E:  Ad„(I) Atr\x02(Bulk) MxPS=  64 Ivl=0ms
E:  Ad\x04(O) Atr\x02(Bulk) MxPS=  64 Ivl=0ms

So as you can see we are mangling the Manufacturer and Product
whitespaces into "_". Is there are specific reason why we are doing it
this way?

Regards

Marcel


--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-01-06  0:24 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-01-05 22:26 Whitespaces in ID_VENDOR and ID_MODEL Marcel Holtmann
2009-01-05 22:59 ` Kay Sievers
2009-01-05 23:37 ` Marcel Holtmann
2009-01-06  0:24 ` Kay Sievers

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).