scheduling work to be done later in kernel driver
From: Tuukka Toivonen (tuukkat_at_killspam.ee.oulu.finland.invalid)
Date: 07/29/04
- Next message: Ram: "above 4 GB RAM access for user processes"
- Previous message: pitkali: "Re: keyboards and scancodes"
- Next in thread: Pete Zaitcev (OTID1): "Re: scheduling work to be done later in kernel driver"
- Reply: Pete Zaitcev (OTID1): "Re: scheduling work to be done later in kernel driver"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 29 Jul 2004 10:06:58 +0000 (UTC)
How to schedule some work to be done later in a portable
ways _at least_ in kernels 2.4.x and 2.6.x, but preferably
also in 2.2.x, x>=18?
The job has to be done in process context, so as far
as I understand, bottomhalves and tasklets won't do it.
I have USB camera driver which has to call such USB calls
as "usb_control_msg" from URB completion handler. Obviously
I can't call that directly because completion handler runs
in interrupt context and the function has to be called in
process context. So it has to be scheduled to be called later.
Kernel thread could do it, except that AFAIK it is 2.6.x
only stuff. So what mechanisms there are available?
- Next message: Ram: "above 4 GB RAM access for user processes"
- Previous message: pitkali: "Re: keyboards and scancodes"
- Next in thread: Pete Zaitcev (OTID1): "Re: scheduling work to be done later in kernel driver"
- Reply: Pete Zaitcev (OTID1): "Re: scheduling work to be done later in kernel driver"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|