Hello Thomas,
Thanks for your prompt reply and suggestion.I am trying your Idea.
My requirement is like this. I am calling some blocking calls. if I create one thread for one blocking call, another blocking call comes with is not adding to the task list when I used tasklet. So I am going to threads now.
If I call threads from interrupt service routine, the arguments are not getting passed correctly to the thread. How to make interrupt service routine small and spaw new thread for each call.
Thanks & Regards
Jhoney
On Thu, 04 Aug 2005 Thomas Petazzoni wrote :
>Hi,
>
>jhoney jhoney wrote:
>
>>I would like to clarify one thing . Is it possible to create a kernel thread (using kernel_thread())from an interrupt service routine ?
>>My requirement is to create a separate control flow when an interrupt 103 occurs ,the function which acts as entry point for thread creation may block also.
>
>Create your kernel thread during initialization (either module initialization or kernel initialization). Block the kernel thread on a semaphore, and wake it up using the semaphore from the interrupt handler.
>
>Or, alternatively, you can use tasklets, but you can't do everything in a tasklet.
>
>Thomas
>-- Thomas Petazzoni
>thomas.petazzoni@xxxxxxxx
>
>--
>Kernelnewbies: Help each other learn about the Linux kernel.
>Archive: http://mail.nl.linux.org/kernelnewbies/
>FAQ: http://kernelnewbies.org/faq/
>