linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Hellwig <hch@infradead.org>
To: "Stephan Müller" <smueller@chronox.de>
Cc: linux-kernel@vger.kernel.org, linux-fsdevel@vger.kernel.org,
	linux-aio@kvack.org, netdev@vger.kernel.org
Subject: Re: AIO operation and CMSG
Date: Wed, 17 Jan 2018 11:22:13 -0800	[thread overview]
Message-ID: <20180117192213.GA21865@infradead.org> (raw)
In-Reply-To: <6214924.yszrlpR4T4@positron.chronox.de>

On Sun, Jan 14, 2018 at 09:01:00AM +0100, Stephan Müller wrote:
> The syscall io_submit sends data to the kernel and invokes the respective 
> handler function in the kernel such as the recvmsg handler. What I am 
> wondering is whether there is a way to send CMSG data along with the io_submit 
> syscall? If not, is CMSG handling with the AIO syscalls possible at all?

Not as-is, but it could be easily added by repurposing unused fields
in the iocb.  The big question is if it should be done to the existing
IOCB_CMD_PREADV/IOCB_CMD_PWRITEV types, or if new SENDMSG/RECVMSG ones
should be added instead.

Also you really want to Cc the relevant lists, I've only accidentally
seen this on linux-kernel.

> 
> Thank you very much.
> 
> [1] http://www.chronox.de/libkcapi.html
> 
> Ciao
> Stephan
> 
> 
---end quoted text---

  reply	other threads:[~2018-01-17 19:22 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-01-14  8:01 AIO operation and CMSG Stephan Müller
2018-01-17 19:22 ` Christoph Hellwig [this message]
2018-01-18  7:32   ` Stephan Mueller

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=20180117192213.GA21865@infradead.org \
    --to=hch@infradead.org \
    --cc=linux-aio@kvack.org \
    --cc=linux-fsdevel@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=netdev@vger.kernel.org \
    --cc=smueller@chronox.de \
    /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).