All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] native queue and timeout
@ 2008-06-10 14:09 Steven Seeger
  2008-06-10 14:17 ` Philippe Gerum
  0 siblings, 1 reply; 4+ messages in thread
From: Steven Seeger @ 2008-06-10 14:09 UTC (permalink / raw)
  To: xenomai

[-- Attachment #1: Type: text/plain, Size: 1105 bytes --]

Hello all. I grabbed svn 3956 and am having a slight problem with
2.6.25.6.

 

I spawn a native thread that does the following:

 

        int res;

        

        printf("reading..\n");

        res = rt_queue_read(&ql, &level_data, sizeof(unsigned long int),
TM_INFINITE);

        printf("done?\n");

        if(res!=sizeof(unsigned long int)) {

            rtlog(RTLOG_LEVEL_EMERG, "level thread went wrong. retval
%d", res);

            abort();

        }

 

The queue "ql" is bound to successfully. The queue is created in another
userspace application. My binding code looks like this:

 

    if(rt_queue_bind(&ql, "rtlog level", TM_NONBLOCK)) {

        fprintf(stderr, "failed to bind to rtlog level queue -- is
rtlogd running?\n");

        abort();

    }

 

"ql" is: RT_QUEUE ql;

 

Now, in the native thread, the call to rt_queue_read always returns with
-ETIMEDOUT  (-110) which makes no sense because I am passing
TM_INFINITE. I made sure my include files were up to date.

 

Any idea?

 

Thanks,

Steven

 


[-- Attachment #2: Type: text/html, Size: 8863 bytes --]

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

* Re: [Xenomai-help] native queue and timeout
  2008-06-10 14:09 [Xenomai-help] native queue and timeout Steven Seeger
@ 2008-06-10 14:17 ` Philippe Gerum
  2008-06-10 14:19   ` Steven Seeger
  2008-06-10 14:23   ` Steven Seeger
  0 siblings, 2 replies; 4+ messages in thread
From: Philippe Gerum @ 2008-06-10 14:17 UTC (permalink / raw)
  To: Steven Seeger; +Cc: xenomai

Steven Seeger wrote:
> Hello all. I grabbed svn 3956 and am having a slight problem with 2.6.25.6.
> 
>  
> 
> I spawn a native thread that does the following:
> 
>  
> 
>         int res;
> 
>        
> 
>         printf("reading..\n");
> 
>         res = rt_queue_read(&ql, &level_data, sizeof(unsigned long int),
> TM_INFINITE);
> 
>         printf("done?\n");
> 
>         if(res!=sizeof(unsigned long int)) {
> 
>             rtlog(RTLOG_LEVEL_EMERG, "level thread went wrong. retval
> %d", res);
> 
>             abort();
> 
>         }
> 
>  
> 
> The queue “ql” is bound to successfully. The queue is created in another
> userspace application. My binding code looks like this:
> 
>  
> 
>     if(rt_queue_bind(&ql, "rtlog level", TM_NONBLOCK)) {
> 
>         fprintf(stderr, "failed to bind to rtlog level queue -- is
> rtlogd running?\n");
> 
>         abort();
> 
>     }
> 
>  
> 
> “ql” is: RT_QUEUE ql;
> 
>  
> 
> Now, in the native thread, the call to rt_queue_read always returns with
> -ETIMEDOUT  (-110) which makes no sense because I am passing
> TM_INFINITE. I made sure my include files were up to date.
> 

If running the trunk/, then you need to fully rebuild the Xenomai userland libs
as well; the ABI has changed in that area.

>  
> 
> Any idea?
> 
>  
> 
> Thanks,
> 
> Steven
> 
>  
> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Xenomai-help mailing list
> Xenomai-help@domain.hid
> https://mail.gna.org/listinfo/xenomai-help


-- 
Philippe.


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

* Re: [Xenomai-help] native queue and timeout
  2008-06-10 14:17 ` Philippe Gerum
@ 2008-06-10 14:19   ` Steven Seeger
  2008-06-10 14:23   ` Steven Seeger
  1 sibling, 0 replies; 4+ messages in thread
From: Steven Seeger @ 2008-06-10 14:19 UTC (permalink / raw)
  To: rpm; +Cc: xenomai

> -----Original Message-----
> From: Philippe Gerum [mailto:philippe.gerum@gmail.com] On Behalf Of
> Philippe Gerum
> Sent: Tuesday, June 10, 2008 8:18 AM
> To: Steven Seeger
> Cc: xenomai-help@gna.org
> Subject: Re: [Xenomai-help] native queue and timeout
> 
> If running the trunk/, then you need to fully rebuild the Xenomai
> userland libs
> as well; the ABI has changed in that area.

Philippe,

I have done this as well. I should have specified. I am running /trunk, btw.

I will double check that I copied the libs properly. 

Steven


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

* Re: [Xenomai-help] native queue and timeout
  2008-06-10 14:17 ` Philippe Gerum
  2008-06-10 14:19   ` Steven Seeger
@ 2008-06-10 14:23   ` Steven Seeger
  1 sibling, 0 replies; 4+ messages in thread
From: Steven Seeger @ 2008-06-10 14:23 UTC (permalink / raw)
  To: rpm; +Cc: xenomai

It appears I copied the libnative.so.2* instead of the 3*. Thanks for the heads up. Everything is peachy-keen now.

Steven


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

end of thread, other threads:[~2008-06-10 14:23 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-06-10 14:09 [Xenomai-help] native queue and timeout Steven Seeger
2008-06-10 14:17 ` Philippe Gerum
2008-06-10 14:19   ` Steven Seeger
2008-06-10 14:23   ` Steven Seeger

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.