Re: System call and preemption...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux