On Fri, 11 Feb 2005 14:41:14 +0100, Erik Mouw <J.A.K.Mouw@xxxxxxxxxxxxxx> wrote: > On Thu, Feb 10, 2005 at 02:01:08PM +0100, Olav Torheim wrote: > > Right now I am working with writing an interrupt routine for my PCI > > card. The interrupt receives the interrupt signal and schedules the > > signal handler (the signal handler is running in user space) to run > > later. > > > > So far, so good. But the problem is that the interrupt I'm using is > > shared with another device. Is there any proper way to make my > > interrupt routine find out which device caused the interrupt? I want > > the interrupt routine to only schedule the signal handler when the > > correct device is interrupting. > > Check your PCI card technical manual, the chip should have a way to > tell if it had interrupts pending. If there's no interrupt pending, the > interrupt wasn't for your card and you should exit the interrupt > handler. There must be some dedicated register for that.. > > Erik > > -- > Erik Mouw > J.A.K.Mouw@xxxxxxxxxxxxxx mouw@xxxxxxxxxxxx > > > -- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/