Driver porting: sleeping and waking up
Posted Feb 28, 2003 15:04 UTC (Fri) by corbet
In reply to: Driver porting: sleeping and waking up
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.
to post comments)