Thread (1 message) 1 message, 1 author, 2021-02-28

Re: [PATCH] ipc/msg: add msgsnd_timed and msgrcv_timed syscall for system V message queue

From: Arnd Bergmann <arnd@kernel.org>
Date: 2021-02-28 19:50:50
Also in: linux-alpha, linux-arch, linux-arm-kernel, lkml

On Sun, Feb 28, 2021 at 5:16 PM Eric Gao [off-list ref] wrote:
quoted
Is there something that mq_timedsend/mq_timedreceive cannot do that
you need? Would it be possible to add that feature to the posix message
queues instead?
the system v message queue have a mtype parameter both in msgsnd and msgrcv which can be
used to implement message routing(mtype as the target id. For example, I filling the target thread
id that waiting message). It's the most important.

but mq_timedsend/mq_timedreceive in posix message queue don't have this feature.
I'm not sure I'm following here. With posix message queues, can't you just open
one queue per target thread? That would seem simpler and more efficient besides
also allowing the timeout.

         Arnd
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help