LED devices

Kay Sievers kay.sievers at vrfy.org
Fri Jun 1 08:25:58 PDT 2007


On Fri, 2007-06-01 at 17:07 +0200, Johannes Berg wrote:
> On Fri, 2007-06-01 at 16:03 +0100, Richard Purdie wrote:
> 
> > The trigger names aren't fixed as such. Could the trigger not register
> > once the device had its name and derive the trigger name from it? 
> 
> That's what I'm doing right now.
> 
> > If the
> > device name changes, it can reregister?
> 
> That loses any associations though, which isn't desirable.

Isn't it enough, when the led is just a child of the device that has
registered it?
So userspace can just walk one directory up in /sys/devices/ and find
the controlling device? Just the same way you will find the pci-device
as a parent of the network interface.

Kay



More information about the hal mailing list