io-uring.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Spiegel <michael.spiegel@twosixlabs.com>
To: io-uring@vger.kernel.org
Subject: unix pipe example?
Date: Mon, 24 Aug 2020 20:08:32 -0400	[thread overview]
Message-ID: <CAKm_-fgeS=-pQJs3ZO0Kju-r2piO39Xnt-CtWoicfOe0a4SF8A@mail.gmail.com> (raw)

Hello,

Is there an example of using io-uring or liburing to implement a unix
pipe, if such an example even makes sense? One consumer process and
one producer process, not forked from a common parent. I tried
searching for an implementation online but couldn't find it. I started
writing an implementation myself using liburing and using a unix
domain socket to share the ring_fd. But it seemed like the
io_uring_params also needed to be shared across the processes? Looking
through the mailing list archives there is some mention of wiring up
io_uring support for pipe2 in the future, which is equivalent to what
I am looking for.

--Michael

                 reply	other threads:[~2020-08-25  0:08 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAKm_-fgeS=-pQJs3ZO0Kju-r2piO39Xnt-CtWoicfOe0a4SF8A@mail.gmail.com' \
    --to=michael.spiegel@twosixlabs.com \
    --cc=io-uring@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).