mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* Interrupt handler registration for multiple devices
@ 2006-08-30 15:12 Rick Brown
  2006-08-30 19:38 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Rick Brown @ 2006-08-30 15:12 UTC (permalink / raw)
  To: linux-newbie, kernelnewbies, linux-kernel

Hi,

I want to write a driver that will handle multiple devices. These
devices will share the IRQ line. Do I need to register my (same)
interrupt handler as many times as the number of devices(by calling
request_irq())?

Also an unrelated query. Can I sleep after a call to preempt_kernel()??

TIA,

Rick

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Interrupt handler registration for multiple devices
  2006-08-30 15:12 Interrupt handler registration for multiple devices Rick Brown
@ 2006-08-30 19:38 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2006-08-30 19:38 UTC (permalink / raw)
  To: Rick Brown; +Cc: linux-newbie, kernelnewbies, linux-kernel

Ar Mer, 2006-08-30 am 20:42 +0530, ysgrifennodd Rick Brown:
> Hi,
> 
> I want to write a driver that will handle multiple devices. These
> devices will share the IRQ line. Do I need to register my (same)
> interrupt handler as many times as the number of devices(by calling
> request_irq())?

Up to you. If you are working with standard devices that need no special
handling to share interrupts (eg PCI bus), the device model makes it
more natural to do that and let the kernel call your handler once for
each device (passing a different dev_id).



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2006-08-30 19:16 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-08-30 15:12 Interrupt handler registration for multiple devices Rick Brown
2006-08-30 19:38 ` Alan Cox

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

Powered by JetHome