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

Arnd Bergmann arnd at kernel.org
Sun Feb 28 14:49:34 EST 2021


On Sun, Feb 28, 2021 at 5:16 PM Eric Gao <eric.tech at foxmail.com> wrote:
>
> > 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



More information about the linux-arm-kernel mailing list