All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Dmitry Adamushko" <dmitry.adamushko@domain.hid>
To: marcellin <marcellin.fotze@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] interrupt wait problem
Date: Tue, 14 Mar 2006 15:23:04 +0200	[thread overview]
Message-ID: <b647ffbd0603140523x11dfc345n@domain.hid> (raw)
In-Reply-To: <44168DA0.3090506@domain.hid>

On 14/03/06, marcellin <marcellin.fotze@domain.hid> wrote:

>
> //in the irq task
>
>
> err = rt_intr_wait( &intr_desc,TIMEOUT );
>                      if(err){
>            printf("AcqProcess -> failed to wait interrupt :
> %s",strerror(-err));
>        }

On success, rt_intr_wait() returns a positive value equal to a number
of currently pending interrupts and not 0.

Although, I don't know how e.g. 1 would be interpreted as "an
operation not permited" with strerror(). strerror(-1) should have
given an "unknown error" or smth like this.

Anyway, please take a look at what exactly the return value is :
negative or positive.


>
> regards
>
> Marcell1

--
Best regards,
Dmitry Adamushko


  reply	other threads:[~2006-03-14 13:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-14  9:32 [Xenomai-help] interrupt wait problem marcellin
2006-03-14 13:23 ` Dmitry Adamushko [this message]
2006-03-14 13:28 ` Gilles Chanteperdrix

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=b647ffbd0603140523x11dfc345n@domain.hid \
    --to=dmitry.adamushko@domain.hid \
    --cc=marcellin.fotze@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.