From: Marcel Holtmann <marcel@holtmann.org>
To: linux-hotplug@vger.kernel.org
Subject: Whitespaces in ID_VENDOR and ID_MODEL
Date: Mon, 05 Jan 2009 22:26:30 +0000 [thread overview]
Message-ID: <1231194390.4858.5.camel@californication> (raw)
[-- 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
next reply other threads:[~2009-01-05 22:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-01-05 22:26 Marcel Holtmann [this message]
2009-01-05 22:59 ` Whitespaces in ID_VENDOR and ID_MODEL Kay Sievers
2009-01-05 23:37 ` Marcel Holtmann
2009-01-06 0:24 ` Kay Sievers
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=1231194390.4858.5.camel@californication \
--to=marcel@holtmann.org \
--cc=linux-hotplug@vger.kernel.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).