RE: handlers

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Title: RE: handlers

> -----Original Message-----
> From: Arren Mund [mailto:gandalf@hendrix.stures.iastate.edu]
> Sent: Tuesday, October 30, 2001 5:41 AM
>
> Is there anyway to get two handlers to coexist?  basically
> have two kernel
> modules/drivers listening to the same IRQ getting the same
> signals and acting
> appropriately?
>

I don't see why not.  (Others more knowledgeable will correct me if I am wrong.)

When you issue request_irq(), be sure that you specify SA_SHIRQ in the flags argument to indicate that the interrupt is shared.  I assume that you would issue request_irq(), once from each module, for each handler you want to register.  When your device interrupts, both handlers should be called...

See http://www.xml.com/ldd/chapter/book/ch09.html, paying special attention to "Interrupt Sharing".

Harmony,

Christine


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux