public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* POSIX message queues should not allocate memory on send
@ 2004-05-14 10:30 Martijn Sipkema
  2004-05-14  9:51 ` Jakub Jelinek
  0 siblings, 1 reply; 8+ messages in thread
From: Martijn Sipkema @ 2004-05-14 10:30 UTC (permalink / raw)
  To: linux-kernel

There is a problem with the current POSIX message queue
implementation. mq_send()/mq_timedsend() may not return
ENOMEM and this means memory for mq_maxmsg*mq_msgsize
will have to be allocated on queue creation. I think POSIX MSG
message passing being part of the REALTIME extensions this
makes sense. I've already mentioned this once to the implementors
of the current implementation, but they did not agree with my
reading of the standard.

The default mq_msgsize also seems a little large to me, but
I don't see why defaults are needed; if I understand the standard
correctly then creating a new message queue without mq_attr
should create an empty queue, which thus cannot be used to
pass messages.

--ms





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

end of thread, other threads:[~2004-08-14 23:14 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-05-14 10:30 POSIX message queues should not allocate memory on send Martijn Sipkema
2004-05-14  9:51 ` Jakub Jelinek
2004-05-14 11:09   ` Martijn Sipkema
2004-05-14 10:40     ` Jakub Jelinek
2004-05-14 12:42       ` Martijn Sipkema
2004-05-14 15:57         ` Ulrich Drepper
2004-08-15  0:12       ` Martijn Sipkema
2004-05-14 16:58     ` Chris Wright

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox