From: Philippe Gerum <rpm@xenomai.org>
To: Saravanan S <sarans1987@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] User interrupt handling in Xenomai running into probs
Date: Thu, 04 Feb 2010 17:14:57 +0100 [thread overview]
Message-ID: <1265300097.2348.158.camel@domain.hid> (raw)
In-Reply-To: <1aa9845a1002040751o549d86efh19c7c0c033dae2c1@domain.hid>
On Thu, 2010-02-04 at 21:21 +0530, Saravanan S wrote:
> Hi,
>
> I tried to implement the hardware interrupt handling feature of
> xenomai in user space.I read the native-api document and ran the
> user_irq.c program with one change ,i tried to intercept the eth0
> interrupt on my system(using interrupt number from
> cat /proc/interrupts).When i ran the program the system froze!!!!!
>
> What am i doing wrong??
The thing is that your tiny little change has some impact. You just
can't intercept a random interrupt without knowing how it interacts with
the Linux kernel, and expect this to work.
The Linux NIC driver won't get interrupts because of this, since
usr_irq.c does not care of propagating them to the standard kernel, so
your device is likely going to bury your box under an interrupt storm.
What is in snippets/ is not meant to be run blindly. Those are pieces of
code to illustrate the use of services in a general way, not examples
tailored to run on any platform, not even yours.
Read the "Life with Adeos" doc to understand why it can't work the way
you did it.
>
> What is the purpose of this feature of allowing user space handling
> of interrupts.Can a user space driver be written using this???
>
Sure. When done properly.
> Thanks in advance.
>
> With regards,
>
> S Saravanan
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help
--
Philippe.
next prev parent reply other threads:[~2010-02-04 16:14 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-02-04 15:51 [Xenomai-help] User interrupt handling in Xenomai running into probs Saravanan S
2010-02-04 16:14 ` Philippe Gerum [this message]
2010-02-05 16:16 ` Saravanan S
2010-02-05 16:43 ` Philippe Gerum
2010-02-07 15:26 ` Saravanan S
2010-02-04 16:16 ` Stefan Kisdaroczi
2010-02-05 16:23 ` Saravanan S
2010-02-05 18:38 ` Stefan Kisdaroczi
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=1265300097.2348.158.camel@domain.hid \
--to=rpm@xenomai.org \
--cc=sarans1987@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.