[<prev] [next>] [day] [month] [year] [list]
Message-ID: <CAK8P3a2o=GfLCBiQh=fuRor3yKd0h7zKDZoqj8bsReoQNEA1eg@mail.gmail.com>
Date: Sun, 28 Feb 2021 20:49:34 +0100
From: Arnd Bergmann <arnd@...nel.org>
To: Eric Gao <eric.tech@...mail.com>
Cc: "catalin.marinas" <catalin.marinas@....com>,
will <will@...nel.org>, geert <geert@...ux-m68k.org>,
monstr <monstr@...str.eu>, tsbogend <tsbogend@...ha.franken.de>,
James Bottomley <James.Bottomley@...senpartnership.com>,
deller <deller@....de>, mpe <mpe@...erman.id.au>,
hca <hca@...ux.ibm.com>, gor <gor@...ux.ibm.com>,
borntraeger <borntraeger@...ibm.com>,
ysato <ysato@...rs.sourceforge.jp>, dalias <dalias@...c.org>,
davem <davem@...emloft.net>, luto <luto@...nel.org>,
tglx <tglx@...utronix.de>, mingo <mingo@...hat.com>,
bp <bp@...en8.de>, chris <chris@...kel.net>,
jcmvbkbc <jcmvbkbc@...il.com>, arnd <arnd@...db.de>,
benh <benh@...nel.crashing.org>, paulus <paulus@...ba.org>,
hpa <hpa@...or.com>, linux-alpha <linux-alpha@...r.kernel.org>,
linux-kernel <linux-kernel@...r.kernel.org>,
linux-arm-kernel <linux-arm-kernel@...ts.infradead.org>,
linux-api <linux-api@...r.kernel.org>,
linux-arch <linux-arch@...r.kernel.org>
Subject: Re: [PATCH] ipc/msg: add msgsnd_timed and msgrcv_timed syscall for
system V message queue
On Sun, Feb 28, 2021 at 5:16 PM Eric Gao <eric.tech@...mail.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
Powered by blists - more mailing lists