All of lore.kernel.org
 help / color / mirror / Atom feed
* [Xenomai-help] uClinux write to pipe returning -ENOMEM
@ 2008-08-19 16:21 Filip Van Rillaer
  2008-08-19 16:31 ` Philippe Gerum
  0 siblings, 1 reply; 12+ messages in thread
From: Filip Van Rillaer @ 2008-08-19 16:21 UTC (permalink / raw)
  To: xenomai

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

Hello,
 
I am opening the uClinux side of a Xenomai pipe like (so in blocking
mode):
FdPipe = open(PipeName, O_RDWR);
After some writes to FdPipe I get the returnvalue -ENOMEM.
I can understand that the internal buffer gets full as my application is
writing data faster than the Xenomai side is consuming, but I don't
expect to see a returnvalue -ENOMEM : the calling writing-thread should
block, isn't it?  Please comment.
 
(When adding the O_SYNC flag things get even worse)
 
Why is the code for xnpipe_write saying:
if (!mh) 
  /* Cannot sleep. */   <--- ???????????????????
  return -ENOMEM;
 
I am using svn version 4105.
 
Best regards,
Filip

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

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

end of thread, other threads:[~2008-08-25  6:30 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-19 16:21 [Xenomai-help] uClinux write to pipe returning -ENOMEM Filip Van Rillaer
2008-08-19 16:31 ` Philippe Gerum
     [not found]   ` <406CC9939904F143B9D42CEEA3E56E56431FCD@oab1mx1.oneaccess.intra>
2008-08-20  9:47     ` Philippe Gerum
2008-08-20 10:16     ` Philippe Gerum
2008-08-20 15:04       ` Filip Van Rillaer
2008-08-20 17:00         ` Philippe Gerum
2008-08-20 17:06         ` Philippe Gerum
2008-08-20 19:08         ` Philippe Gerum
2008-08-21 11:08           ` Filip Van Rillaer
2008-08-22 18:20             ` Philippe Gerum
2008-08-25  6:30               ` Filip Van Rillaer
2008-08-22 18:21     ` Philippe Gerum

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.