linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* race aware poll implementation on SMP
@ 2002-10-10 12:22 oleg afanasjev
  0 siblings, 0 replies; only message in thread
From: oleg afanasjev @ 2002-10-10 12:22 UTC (permalink / raw)
  To: linux-kernel

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-10-10 12:16 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-10-10 12:22 race aware poll implementation on SMP oleg afanasjev

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).