lkml.org 
[lkml]   [2002]   [Oct]   [10]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
Subjectrace aware poll implementation on SMP
Hello.

I'm writing a kernel module for 2.4 kernel. This
module serves 2 device files. One of them represents
hardware and the other is used to connect a software
emulation of that hardware if the read adapter
is absent.
When an application accesses the first device it is
put to sleep till the software emulation supplies the
needed data.
Emulation sleeps in a poll when device ain't accessed.
It is supposed to work on SMP machine.
Should poll fileop be made race aware? What if the
wake_up happens between checking the poll status and
puting process in wait queue?


=====
Best regards,
Oleg Afanasjev

-

__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:29    [W:0.020 / U:0.120 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site