From: Jeffrey Melville <jmelville@mitre.org>
To: xenomai@xenomai.org
Subject: Re: [Xenomai] rtdm_event_wait not working as expected
Date: Fri, 20 Feb 2015 13:14:47 -0500 [thread overview]
Message-ID: <54E77997.7050808@mitre.org> (raw)
In-Reply-To: <CALe7ZU2FV4WTd-ACRYwLyz6hC1-7NG3rCqcL3Ke5t=k74DGmeA@mail.gmail.com>
On 2/20/2015 4:01 AM, JAY KOTHARI wrote:
> Hello,
> I am using rtdm_event_wait() which returns 0 even I havn't used
> rtdm_event_signal(). My rtdm driver is not going into blocking state.
> I am using arm platform. On x86 platform this api worked
> perfectly.What might be I missing?
>
> Thank you
>
> Jay Kothari
>
> _______________________________________________
> Xenomai mailing list
> Xenomai@xenomai.org
> http://www.xenomai.org/mailman/listinfo/xenomai
>
Are you calling rtdm_event_wait() from a non-RT context? I noticed in my
application* that rtdm_event_wait() always returns 0 in non-RT and I
needed to ensure rtdm_event_wait() is only called from RT context.
I'm not sure if 0 is the intended return value or not, but the
documentation does specify that NRT isn't a valid calling context.
*Zynq, Kernel 3.8, Xenomai 2.6.4.
Jeff
(Sorry, forgot to reply to list the first time)
next prev parent reply other threads:[~2015-02-20 18:14 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-02-20 9:01 [Xenomai] rtdm_event_wait not working as expected JAY KOTHARI
2015-02-20 18:14 ` Jeffrey Melville [this message]
[not found] ` <54E7716B.5000102@mitre.org>
2015-02-21 9:52 ` JAY KOTHARI
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=54E77997.7050808@mitre.org \
--to=jmelville@mitre.org \
--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.