linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Quick question about ID_SERIAL
@ 2010-01-07  2:35 Marcel Holtmann
  2010-01-07 14:24 ` Kay Sievers
  0 siblings, 1 reply; 2+ messages in thread
From: Marcel Holtmann @ 2010-01-07  2:35 UTC (permalink / raw)
  To: linux-hotplug

Hi Kay,

I have a quick question about ID_SERIAL property. Are these meant to be
D-Bus object path compliant? Meaning they only contain a-z, A-Z, 0-9, _
characters? It would be actually nice to use them directly as an unique
identifier without having to do extra transformations.

Regards

Marcel



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

* Re: Quick question about ID_SERIAL
  2010-01-07  2:35 Quick question about ID_SERIAL Marcel Holtmann
@ 2010-01-07 14:24 ` Kay Sievers
  0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2010-01-07 14:24 UTC (permalink / raw)
  To: linux-hotplug

On Thu, Jan 7, 2010 at 03:35, Marcel Holtmann <marcel@holtmann.org> wrote:
> I have a quick question about ID_SERIAL property. Are these meant to be
> D-Bus object path compliant? Meaning they only contain a-z, A-Z, 0-9, _
> characters? It would be actually nice to use them directly as an unique
> identifier without having to do extra transformations.

Not really, it is usually just the string where different properties
of a device are concatenated to a single string to create a useful
symlink name. The string for a symlink can also contain valid utf8
sequences and "#+-.:=@_".

Some users of these strings need values which are translatable back to
the original string, so in some cases we escape all non-allowed chars
by "\x..".

We can not really stuff these things into a string that has only the
characters allowed by D-Bus. You could only add a new variable, the
current ones can not really be changed, as they are used in already
established symlink names.

Cheers,
Kay

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

end of thread, other threads:[~2010-01-07 14:24 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-01-07  2:35 Quick question about ID_SERIAL Marcel Holtmann
2010-01-07 14: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).