From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752194AbcAFP26 (ORCPT ); Wed, 6 Jan 2016 10:28:58 -0500 Received: from foo.stuge.se ([212.116.89.98]:33032 "EHLO foo.stuge.se" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751717AbcAFP2z (ORCPT ); Wed, 6 Jan 2016 10:28:55 -0500 X-Greylist: delayed 400 seconds by postgrey-1.27 at vger.kernel.org; Wed, 06 Jan 2016 10:28:55 EST Message-ID: <20160106152212.15218.qmail@stuge.se> Date: Wed, 6 Jan 2016 16:22:12 +0100 From: Peter Stuge To: "Steinar H. Gunderson" Cc: Christoph Hellwig , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stern@rowland.harvard.edu Subject: Re: [PATCH] Add support for usbfs zerocopy. Mail-Followup-To: "Steinar H. Gunderson" , Christoph Hellwig , Greg Kroah-Hartman , linux-usb@vger.kernel.org, linux-kernel@vger.kernel.org, stern@rowland.harvard.edu References: <20160106064949.GA14998@infradead.org> <20160106144512.GA21737@imap.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20160106144512.GA21737@imap.gmail.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Steinar H. Gunderson wrote: > > Our interface for zero copy reads/writes is O_DIRECT, and that requires > > not special memory allocation, just proper alignment. > > But that assumes you are using I/O using read()/write(). There's no way you > can shoehorn USB isochronous reads into the read() interface, O_DIRECT or not. How about aio? //Peter