Re: calling kthread_create() from interrupt thread

Arjan van de Ven
2004-06-15T17:52:17Z

[-- Attachment #1: Type: text/plain, Size: 516 bytes --]

On Tue, 2004-06-15 at 19:42, Dean Nelson wrote:
> I'm working on a driver that needs to create threads that can sleep/block
> for an indefinite period of time.
>
> . Can kthread_create() be called from an interrupt handler?

no

>
> . Is the cost of a kthread's creation/demise low enough so that one
> can, as often as needed, create a kthread that performs a simple
> function and exits? Or is the cost too high for this?

for that we have keventd in 2.4, work queues in 2.6

[-- Attachment #2: This is a digitally signed message part --]
[-- Type: application/pgp-signature, Size: 189 bytes --]