On Thu, Feb 14, 2008 at 10:51:10AM -0800, David Brownell wrote:
> On Thursday 14 February 2008, Andrew McKay wrote:
> > What would be the best way to implement a loop to handle flashing the LED 
> > in 
> > kernel space. ?Is this a good task for a kthread? ?Or is there a simpler 
> > construct to do this with?
> 
> Use the LED framework ... it supports a variety of triggers.
> For example, "heartbeat" blinks faster as system load increases,
> "timer" has easily settable periods, and you can manually set
> the brightness ... all under sysfs control.

And, best of all, you tie into the standard Linux API for LEDs, always a
much better idea than implementing your own API through a custom ioctl
that no one else is going to know about.

thanks,

greg k-h
-
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to