LED devices

Richard Purdie rpurdie at openedhand.com
Fri Jun 1 08:03:56 PDT 2007


On Fri, 2007-06-01 at 16:59 +0200, Johannes Berg wrote:
> On Fri, 2007-06-01 at 15:48 +0100, Richard Purdie wrote:
> > For contrast, another possibility is we expose the default_trigger
> > string, e.g. "ieee80211:%s:rx" and then have userspace set the trigger
> > accordingly but that somehow seems more clunky, especially when the
> > kernel can handle things itself at the moment with next to no code.
> 
> No, the problem I actually have with the trigger names is that they're
> fixed, and not actual device entities, but my triggers correspond to a
> device. And it's complicated by the fact that those devices can be
> renamed, which the trigger won't follow.

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? If the
device name changes, it can reregister?

Cheers,

Richard





More information about the hal mailing list