Re: waiting for irq from userland?

Matthew Kirkwood (weejock@ferret.lmh.ox.ac.uk)
Sun, 25 Jul 1999 10:36:28 +0100 (GMT)


On Sat, 24 Jul 1999, Jeff Garzik wrote:

> What is the most efficient way to wait for a device interrupt from
> userland, if you control both the device driver and the application?
> SysV semaphore? Signal?

Probably read() or select().

The enhanced RTC driver does this quite nicely.

Matthew.

-
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/