From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from newverein.lst.de (verein.lst.de [213.95.11.211]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ml01.01.org (Postfix) with ESMTPS id 8997881F87 for ; Wed, 1 Feb 2017 01:28:02 -0800 (PST) Date: Wed, 1 Feb 2017 10:28:00 +0100 From: Christoph Hellwig Subject: Re: [RFC PATCH 10/17] block: introduce bdev_dax_direct_access() Message-ID: <20170201092800.GA1050@lst.de> References: <148559256378.11180.8957776806175202312.stgit@dwillia2-desk3.amr.corp.intel.com> <148559261791.11180.12085685820239925499.stgit@dwillia2-desk3.amr.corp.intel.com> <20170130123226.GD9043@lst.de> <20170201081020.GD29170@lst.de> MIME-Version: 1.0 Content-Disposition: inline In-Reply-To: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: linux-nvdimm-bounces@lists.01.org Sender: "Linux-nvdimm" To: Dan Williams Cc: Mike Snitzer , Matthew Wilcox , "linux-nvdimm@lists.01.org" , linux-block@vger.kernel.org, linux-fsdevel , Christoph Hellwig List-ID: On Wed, Feb 01, 2017 at 01:21:40AM -0800, Dan Williams wrote: > > In/Out parameters are always a bit problematic in terms of API clarity. > > And updating a device-relative address with an absolute physical one > > sounds like an odd API for sure. > > Yes, it does, and I thought better of it shortly after sending that. How about: > > long dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, > unsigned long nr_pages, void **kaddr, pfn_t *pfn) Yes, that looks good to me. _______________________________________________ Linux-nvdimm mailing list Linux-nvdimm@lists.01.org https://lists.01.org/mailman/listinfo/linux-nvdimm From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from verein.lst.de ([213.95.11.211]:33971 "EHLO newverein.lst.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751731AbdBAJ2D (ORCPT ); Wed, 1 Feb 2017 04:28:03 -0500 Date: Wed, 1 Feb 2017 10:28:00 +0100 From: Christoph Hellwig To: Dan Williams Cc: Christoph Hellwig , "linux-nvdimm@lists.01.org" , Mike Snitzer , Toshi Kani , Matthew Wilcox , linux-block@vger.kernel.org, jmoyer , linux-fsdevel , Ross Zwisler Subject: Re: [RFC PATCH 10/17] block: introduce bdev_dax_direct_access() Message-ID: <20170201092800.GA1050@lst.de> References: <148559256378.11180.8957776806175202312.stgit@dwillia2-desk3.amr.corp.intel.com> <148559261791.11180.12085685820239925499.stgit@dwillia2-desk3.amr.corp.intel.com> <20170130123226.GD9043@lst.de> <20170201081020.GD29170@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Sender: linux-block-owner@vger.kernel.org List-Id: linux-block@vger.kernel.org On Wed, Feb 01, 2017 at 01:21:40AM -0800, Dan Williams wrote: > > In/Out parameters are always a bit problematic in terms of API clarity. > > And updating a device-relative address with an absolute physical one > > sounds like an odd API for sure. > > Yes, it does, and I thought better of it shortly after sending that. How about: > > long dax_direct_access(struct dax_device *dax_dev, pgoff_t pgoff, > unsigned long nr_pages, void **kaddr, pfn_t *pfn) Yes, that looks good to me.