From: Jorge Almeida <jjalmeida@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] serial in /sys
Date: Fri, 30 Nov 2012 12:48:51 +0000 [thread overview]
Message-ID: <CAKpSnpK1BBqUhEzcaPk+7ypE4YDoLGZeRVht7-wTLcZJw1QnbQ@mail.gmail.com> (raw)
In-Reply-To: <20121130100023.340f4579@digimed.co.uk>
On Fri, Nov 30, 2012 at 10:00 AM, Neil Bothwick <neil@digimed.co.uk> wrote:
> On Thu, 29 Nov 2012 19:07:11 +0000, Jorge Almeida wrote:
>
>> This is indeed the device I meant, and the serial number is the
>> "E68911000519" substring. But this symlink exists because udev created
>> it. I need to somehow dig it out of /sys, not out of /dev. IOW, how did
>> udev retrieved the information to create the symlink?
>
> This is all done in /usr/lib/udev/rules.d/60-persistent-storage.rules
>
> ENV{SERIAL} seems to be the key, but udev rules use variables rather than
> accessing /sys directly.
The point is what sets the variables. I don't think the kernel sets SERIAL, at
least it doesn't export it via the hotplug mechanism. Maybe it does it via
netlink, but where oh where is the documentation for that? Short of reading
the source, which is beyond my skills...
>
> I really like udev as it makes just about anything you want to do easy,
> it's a shame to watch it getting lost.
>
udev is a good idea, but it was plagued from the very beginning with the
syndrome "we know this arcane stuff, you don't need to understand as long as
your distro's devs can make it JustWork". Most users don't care, but some do,
as this is linux.
Cheers
Jorge Almeida
next prev parent reply other threads:[~2012-11-30 12:52 UTC|newest]
Thread overview: 20+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-11-29 17:57 [gentoo-user] serial in /sys Jorge Almeida
2012-11-29 18:35 ` Marco Bonfiglio
2012-11-29 19:07 ` Jorge Almeida
2012-11-29 22:09 ` Kevin Chadwick
2012-11-30 10:00 ` Neil Bothwick
2012-11-30 12:48 ` Jorge Almeida [this message]
2012-11-29 19:20 ` Bruce Hill
2012-11-29 19:31 ` Jorge Almeida
2012-11-29 20:20 ` Bruce Hill
2012-11-29 20:56 ` Jorge Almeida
2012-11-29 22:35 ` Walter Dnes
2012-11-30 0:28 ` Jorge Almeida
2012-11-30 3:09 ` Walter Dnes
2012-11-30 9:58 ` Jorge Almeida
2012-12-01 3:47 ` Walter Dnes
2012-12-01 4:55 ` Joshua Murphy
2012-12-01 9:11 ` Jorge Almeida
2012-12-01 9:08 ` Jorge Almeida
2012-11-30 0:56 ` James Cloos
2012-11-30 18:02 ` Volker Armin Hemmann
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=CAKpSnpK1BBqUhEzcaPk+7ypE4YDoLGZeRVht7-wTLcZJw1QnbQ@mail.gmail.com \
--to=jjalmeida@gmail.com \
--cc=gentoo-user@lists.gentoo.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