From: Jeff Webb <jeff.webb@domain.hid>
To: Xenomai help <xenomai@xenomai.org>
Subject: [Xenomai-help] Propagating interrupts
Date: Wed, 01 Nov 2006 17:46:29 -0600 [thread overview]
Message-ID: <454931D5.4050507@domain.hid> (raw)
I have read that propagating interrupts to Linux is a bad idea for RT applications. I am trying to understand what happens when I install an interrupt handler via the userspace POSIX skin like this:
pthread_intr_attach_np (&ctr_intr, irq_number, PTHREAD_IPROPAGATE);
My RT thread waits on this interrupt using:
pthread_intr_wait_np(ctr_intr, NULL);
Here is my understanding of what happens when I get an interrupt on this IRQ. The Xenomai interrupt handler is executed, which wakes up my RT thread. The interrupt remains masked until the Linux interrupt handler is executed. The linux interrupt handler processes the interrupt, and then re-enables the IRQ. Now the RT thread can receive more interrupts.
Is this basically correct?
-Jeff
next reply other threads:[~2006-11-01 23:46 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-11-01 23:46 Jeff Webb [this message]
2006-11-02 7:54 ` [Xenomai-help] Propagating interrupts Jan Kiszka
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=454931D5.4050507@domain.hid \
--to=jeff.webb@domain.hid \
--cc=xenomai@xenomai.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.