All of lore.kernel.org
 help / color / mirror / Atom feed
From: Philippe Gerum <rpm@xenomai.org>
To: Roderik.Wildenburg@domain.hid
Cc: xenomai@xenomai.org
Subject: Re: [Xenomai-help] rt_queue_write strange behaviour ++ testcase !!
Date: Mon, 03 Dec 2007 17:50:55 +0100	[thread overview]
Message-ID: <475433EF.4020804@domain.hid> (raw)
In-Reply-To: <5D63919D95F87E4D9D34FF7748CE2C2AE66E86@domain.hid>

Roderik.Wildenburg@domain.hid wrote:
> After I realized that the error depends on TM_NONBLOCK in the queue reading task (rt_queue_read(&qtest1q, &buf, sizeof (buf), TM_NONBLOCK)), I finaly succeded in generating a simple testcase !
> 
> On my target (PPC 400MHZ) the appended programm produces an EINVAL error with rt_queue_write nearly immediately and the second rt_queue_write succeeds nearly allways.
> 
> So, could you/Philippe try this testcase on your target and tell me whether you face the same problem.
>

Do you have this patch in?

--- ksrc/skins/native/syscall.c	(revision 3195)
+++ ksrc/skins/native/syscall.c	(revision 3196)
@@ -2468,10 +2468,10 @@

 		if (size > 0)
 			__xn_copy_to_user(curr, buf, mbuf, size);
+
+		rt_queue_free(q, mbuf);
 	}

-	rt_queue_free(q, mbuf);
-
 	return (int)rsize;
 }

-- 
Philippe.


  reply	other threads:[~2007-12-03 16:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-11-30 10:42 [Xenomai-help] rt_queue_write strange behaviour ++ Roderik.Wildenburg
2007-11-30 10:55 ` Philippe Gerum
2007-11-30 12:22   ` Roderik.Wildenburg
2007-12-03 13:31   ` Roderik.Wildenburg
2007-12-03 15:16     ` [Xenomai-help] rt_queue_write strange behaviour ++ testcase !! Roderik.Wildenburg
2007-12-03 16:50       ` Philippe Gerum [this message]
2007-12-04 12:05         ` Roderik.Wildenburg

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=475433EF.4020804@domain.hid \
    --to=rpm@xenomai.org \
    --cc=Roderik.Wildenburg@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.