public inbox for linux-newbie@vger.kernel.org
 help / color / mirror / Atom feed
From: Octavian Purdila <tavi@cs.pub.ro>
To: kernelnewbies@nl.linux.org
Cc: Rick Brown <rick.brown.3@gmail.com>, linux-newbie@vger.kernel.org
Subject: Re: Interrupt handler registration for multiple devices
Date: Wed, 30 Aug 2006 18:29:08 +0300	[thread overview]
Message-ID: <200608301829.08747.tavi@cs.pub.ro> (raw)
In-Reply-To: <7783925d0608300812j2175164dja401b4e763a5ac43@mail.gmail.com>

On Wednesday 30 August 2006 18:12, Rick Brown wrote:
> 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())?
>

No, once will suffice. However, you will need to check your devices registers 
and figure out which device triggered the interrupt.

tavi
-
To unsubscribe from this list: send the line "unsubscribe linux-newbie" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.linux-learn.org/faqs

  reply	other threads:[~2006-08-30 15:29 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-08-30 15:12 Interrupt handler registration for multiple devices Rick Brown
2006-08-30 15:29 ` Octavian Purdila [this message]
2006-08-30 19:38 ` Alan Cox

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=200608301829.08747.tavi@cs.pub.ro \
    --to=tavi@cs.pub.ro \
    --cc=kernelnewbies@nl.linux.org \
    --cc=linux-newbie@vger.kernel.org \
    --cc=rick.brown.3@gmail.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox