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

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.