LWN.net Logo

Driver porting: sleeping and waking up

Driver porting: sleeping and waking up

Posted Feb 28, 2003 15:04 UTC (Fri) by corbet (editor, #1)
In reply to: Driver porting: sleeping and waking up by ortalo
Parent article: Driver porting: sleeping and waking up

The best option, of course, would be to check the display lists at the time they are submitted by the user space process. That way you can return an immediate error if something is wrong.

If you have other stuff that needs doing, a kernel thread could certainly do it. I would recommend a look at the workqueue interface, however, as a relatively easy way to do this sort of deferred processing. You can feed a task into a workqueue from an interrupt handler and it can execute at leisure, in process context, later on.


(Log in to post comments)

Copyright © 2013, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds