From: Philippe Gerum <rpm@xenomai.org>
To: Steven Seeger <sseeger@domain.hid>
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] native queue and timeout
Date: Tue, 10 Jun 2008 16:17:50 +0200 [thread overview]
Message-ID: <484E8D0E.10606@domain.hid> (raw)
In-Reply-To: <51CAD0CE1504444DBE77CBBE51A0135D470A4D@slcmail.slc.mew.int>
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.
next prev parent reply other threads:[~2008-06-10 14:17 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-06-10 14:09 [Xenomai-help] native queue and timeout Steven Seeger
2008-06-10 14:17 ` Philippe Gerum [this message]
2008-06-10 14:19 ` Steven Seeger
2008-06-10 14:23 ` Steven Seeger
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=484E8D0E.10606@domain.hid \
--to=rpm@xenomai.org \
--cc=sseeger@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.