LED devices

Richard Purdie rpurdie at openedhand.com
Thu May 31 01:26:25 PDT 2007


On Thu, 2007-05-31 at 00:24 -0700, Greg KH wrote:
> > The first contains no useful information, the second one is only
> > fractionally better, the third is actually quite useful. Faced with the
> > third name, a person can actually point to the right LED on the device.
> 
> So?  You need to read the attributes in the sysfs device directory to
> find out exactly what type of device this is, what it does, and all
> sorts of other information.
> 
> The first two examples above are correct.  They use a "bus id" type
> naming scheme, like ALL OTHER DEVICES IN THE KERNEL.  The only
> requirement is that it is unique.

So as long as the name is unique, a class can use whatever naming scheme
it likes?

If any information in the name also appears as an attribute, that would
be acceptable?

Regards,

Richard



More information about the hal mailing list