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.

The simplest way to plug into that is to just to submit your
URBs asynchronously.  Save it away when it completes, so you
don't have to re-allocate another URB later.

You don't need a task for this.

- Dave
-
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