El Thu, Jan 17, 2008 at 03:04:08PM -0200 Martin Candurra ha dit:
> Writing to a file probably puts the process to sleep. That is not possible
> if you are in an interrupt context,
> even if you could, the idea of an interrupt handler is to be as quick as
> possible.
>
> You have to use Tasklets for what you want to do. You can check how to use
> it from Linux Device Drivers book.
tasklets also run in interrupt context (on top of
softirqs). workqueues are the only bottom halve mechanism that allowes
sleeping.
--
Matthias Kaehlcke
Linux System Developer
Barcelona
We can't solve problems by using the same kind
of thinking we used when we created them
(Albert Einstein)
.''`.
using free software / Debian GNU/Linux | http://debian.org : :' :
`. `'`
gpg --keyserver pgp.mit.edu --recv-keys 47D8E5D4 `-
--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to [EMAIL PROTECTED]
Please read the FAQ at http://kernelnewbies.org/FAQ