LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   schedule or signal a work (fucntion) from within the kernel code (https://www.linuxquestions.org/questions/linux-kernel-70/schedule-or-signal-a-work-fucntion-from-within-the-kernel-code-711140/)

fardad 03-12-2009 02:26 PM

schedule or signal a work (fucntion) from within the kernel code
 
Hi All,

I am trying to schedule a work from my module, from kernel code. Could you please give me a hint how to do this? Should I be using Work Queue?

thanks
Fardad

IND 03-16-2009 05:55 AM

Hi,
If you are using RTlinux kind of kernel then you can give the nice (which deals with priority) values to the code,so you can schedule the task but where as in normal
embedded kernel(not RTOS),i guess we are not supposed to set the nice values to the task, though you have set the nice values statically but on the fly again it would be modified because the scehduler itself written like that...but i'm not sure 100%, please go through the code sched.c this may help you out...

thanks...


All times are GMT -5. The time now is 08:42 AM.