All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai] rtdm_event_wait not working as expected
@ 2015-02-20  9:01 JAY KOTHARI
  2015-02-20 18:14 ` Jeffrey Melville
       [not found] ` <54E7716B.5000102@mitre.org>
  0 siblings, 2 replies; 3+ messages in thread
From: JAY KOTHARI @ 2015-02-20  9:01 UTC (permalink / raw)
  To: xenomai

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


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai] rtdm_event_wait not working as expected
  2015-02-20  9:01 [Xenomai] rtdm_event_wait not working as expected JAY KOTHARI
@ 2015-02-20 18:14 ` Jeffrey Melville
       [not found] ` <54E7716B.5000102@mitre.org>
  1 sibling, 0 replies; 3+ messages in thread
From: Jeffrey Melville @ 2015-02-20 18:14 UTC (permalink / raw)
  To: xenomai

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)


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Xenomai] rtdm_event_wait not working as expected
       [not found] ` <54E7716B.5000102@mitre.org>
@ 2015-02-21  9:52   ` JAY KOTHARI
  0 siblings, 0 replies; 3+ messages in thread
From: JAY KOTHARI @ 2015-02-21  9:52 UTC (permalink / raw)
  To: xenomai

Thank you Jeff for reply

> 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 am calling from rtdm_event_wait() from function which is in rtdm
driver real time read function. But its returning 0 with even calling
rtdm_event_signal().

> 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.
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-02-21  9:52 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-02-20  9:01 [Xenomai] rtdm_event_wait not working as expected JAY KOTHARI
2015-02-20 18:14 ` Jeffrey Melville
     [not found] ` <54E7716B.5000102@mitre.org>
2015-02-21  9:52   ` JAY KOTHARI

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.