From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 5E8B7C433FE for ; Tue, 11 Jan 2022 13:56:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S240850AbiAKN4O (ORCPT ); Tue, 11 Jan 2022 08:56:14 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48912 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S239487AbiAKN4N (ORCPT ); Tue, 11 Jan 2022 08:56:13 -0500 Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id DA5CEC06173F; Tue, 11 Jan 2022 05:56:12 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=In-Reply-To:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:Sender:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description; bh=9x3T+OG12IkfXXX5SdbrD0z40LWuqe0Q6mgSeNzWLM8=; b=TaT6fy8pCvO5SdKMnaN7SpBmY9 /ZLyF3tWCXHLpuit9luOiZ+ndBhQ7LL/wNEHrb38QTJZ6YpADTaPY1r1YOSR00c9Kbj2WgXFKfoye AWqf5FCJoK95CUarLnHHHQ+mltrKuJLW/m7eN2QQhyn7ZyRMaP6Z5ZdVjN6nHIgPoWECjHIV9dkCB +ZfRtOv6Aex8dBEReg0SGmxUnklwwvLlMM42PR8Xw3SOfokz55fFhdgE9ORE7rzOEVfdu079sxZ6X tK+DFC4Njr3sRPVXX9X+tuYJmqg8+Ur/DcvJQhMYgoFj0Bmnsfpi5Rk6ot0HbCwGDYQSQnGAGX52y Zz45MQfg==; Received: from willy by casper.infradead.org with local (Exim 4.94.2 #2 (Red Hat Linux)) id 1n7HdA-003Id6-MO; Tue, 11 Jan 2022 13:56:08 +0000 Date: Tue, 11 Jan 2022 13:56:08 +0000 From: Matthew Wilcox To: Thomas Zimmermann Cc: linux-kernel@vger.kernel.org, nvdimm@lists.linux.dev, linux-rdma@vger.kernel.org, John Hubbard , dri-devel@lists.freedesktop.org, Ming Lei , linux-block@vger.kernel.org, linux-mm@kvack.org, Jason Gunthorpe , netdev@vger.kernel.org, Joao Martins , Logan Gunthorpe , Christoph Hellwig Subject: Re: Phyr Starter Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Tue, Jan 11, 2022 at 12:40:10PM +0100, Thomas Zimmermann wrote: > Hi > > Am 10.01.22 um 20:34 schrieb Matthew Wilcox: > > TLDR: I want to introduce a new data type: > > > > struct phyr { > > phys_addr_t addr; > > size_t len; > > }; > > Did you look at struct dma_buf_map? [1] Thanks. I wasn't aware of that. It doesn't seem to actually solve the problem, in that it doesn't carry any length information. Did you mean to point me at a different structure?