interrupts and synchronization

Olaf Meyer (olafm@seas.upenn.edu)
Mon, 8 Mar 1999 14:32:21 -0500 (EST)


Is there any way to use synchroniztion methods (e.g. semaphores) in
interrupts? It seems to me that this is not possible, since you are not
allowed to invoke the scheduler from interrupts.

I have the following problem: In my protocol handler routine
for a network device driver I have to check a condition variable.
If this is not set properly, I have to wait until it changes
before I proceed with the processing of the package.

Now the protol handler get called in net_bh, so I can't use
wait queues or similar stuff, since related routines invoke
the scheduler.

Is there any easy solution to my problem, or is it impossible to
do this way?

Any infos welcome. Please also e-mail them to me :-)

Thanks a lot,

Olaf

-- 
 Olaf Meyer                       | mailto://olafm@seas.upenn.edu    |    _~o
 Computer and Information Science | http://www.seas.upenn.edu/~olafm |  _-\_<,
 University of Pennsylvania       |				     | (*)/'(*)
 Philadelphia, PA 19104-6389, USA | PGP: finger -l olafm@seas.upenn.edu

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/