All of lore.kernel.org
 help / color / mirror / Atom feed
From: Stefan Kisdaroczi <kisda@domain.hid>
To: Saravanan S <sarans1987@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] User interrupt handling in Xenomai running into probs
Date: Fri, 05 Feb 2010 19:38:59 +0100	[thread overview]
Message-ID: <4B6C65C3.3080403@domain.hid> (raw)
In-Reply-To: <1aa9845a1002050823s2b1efe26hb17987f09f93c94@domain.hid>

Saravanan S schrieb:
> 
> 
> On Thu, Feb 4, 2010 at 9:46 PM, Stefan Kisdaroczi <kisda@domain.hid
> <mailto:kisda@domain.hid>> wrote:
> 
>     Hi,
> 
>     Am 04.02.2010 16:51, schrieb Saravanan S:
>     > 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!!!!!
> 
>     The rt_intr_* interface is disabled by default in the kernel
>     configuration, please check.
>     That would mean that rt_intr_wait returns immediately, now look at
>     this loop from user_irq.c:
>        for (;;) {
> 
>           /* Wait for the next interrupt on channel #7. */
>           err = rt_intr_wait(&intr_desc,TM_INFINITE);
> 
>           if (!err) {
>               /* Process interrupt. */
>           }
> 
> 
> Can you please indicate which variable in the kernel config controls
> that setting???

The variable name in the config file is: CONFIG_XENO_OPT_NATIVE_INTR

If you use 'make menuconfig' to configure the kernel,
from the main menu, go to:
 Real-time sub-system ---> Interfaces ---> Native API
 There is a option called 'Interrupts' at the end of the list

>     > What am i doing wrong??
>     >
>     > What  is the purpose of this feature of allowing user space
>     handling of
>     > interrupts.Can a user space driver be written using this???
> 
>     You should use the rtdm interface for drivers.
> 
> 
> I know very little in kernel programming so thought it would be easier
> to process interrrupts in user space.....

look here for starting points:
  https://mail.gna.org/public/xenomai-help/2009-05/msg00168.html


Stefan



      reply	other threads:[~2010-02-05 18:38 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
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 [this message]

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=4B6C65C3.3080403@domain.hid \
    --to=kisda@domain.hid \
    --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.