On Tue, 2 Apr 2002, Siddharth Choudhuri wrote: > sys_write() > { > if (some_condition) > reschedule the process at a later time (preempt) > else > do whatever write does > } > The problem is when I'm checking the condition, I'm in kernel mode, so > how do I preempt the process that called write. Also, how do I access Do you mean something like if (some_condition) schedule(); /* ... continue */ ? -- JiKos. -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/