From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752681AbeAQTWR (ORCPT ); Wed, 17 Jan 2018 14:22:17 -0500 Received: from bombadil.infradead.org ([65.50.211.133]:39855 "EHLO bombadil.infradead.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750888AbeAQTWP (ORCPT ); Wed, 17 Jan 2018 14:22:15 -0500 Date: Wed, 17 Jan 2018 11:22:13 -0800 From: Christoph Hellwig To: Stephan =?iso-8859-1?Q?M=FCller?= 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 Message-ID: <20180117192213.GA21865@infradead.org> References: <6214924.yszrlpR4T4@positron.chronox.de> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: <6214924.yszrlpR4T4@positron.chronox.de> User-Agent: Mutt/1.9.1 (2017-09-22) X-SRS-Rewrite: SMTP reverse-path rewritten from by bombadil.infradead.org. See http://www.infradead.org/rpr.html Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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---