From patchwork Thu Dec 2 19:02:24 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Tucker X-Patchwork-Id: 375581 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB2J2LXS004302 for ; Thu, 2 Dec 2010 19:02:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757909Ab0LBTCZ (ORCPT ); Thu, 2 Dec 2010 14:02:25 -0500 Received: from smtp.opengridcomputing.com ([209.198.142.2]:56459 "EHLO smtp.opengridcomputing.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757199Ab0LBTCZ (ORCPT ); Thu, 2 Dec 2010 14:02:25 -0500 Received: from build.ogc.int (build.ogc.int [10.10.0.2]) by smtp.opengridcomputing.com (Postfix) with ESMTP id DAF9F7C75D; Thu, 2 Dec 2010 13:02:24 -0600 (CST) From: Tom Tucker Subject: [RFC PATCH 1/2] IB/uverbs: Add memory type to ib_umem structure To: linux-rdma@vger.kernel.org Cc: tom@ogc.us, garlick@llnl.gov, acook@visionpointsystems.com Date: Thu, 02 Dec 2010 13:02:24 -0600 Message-ID: <20101202190224.13657.94704.stgit@build.ogc.int> In-Reply-To: <20101202190157.13657.58176.stgit@build.ogc.int> References: <20101202190157.13657.58176.stgit@build.ogc.int> User-Agent: StGIT/0.14.3 MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Thu, 02 Dec 2010 19:02:26 +0000 (UTC) diff --git a/include/rdma/ib_umem.h b/include/rdma/ib_umem.h index 9ee0d2e..566b07f 100644 --- a/include/rdma/ib_umem.h +++ b/include/rdma/ib_umem.h @@ -39,8 +39,14 @@ struct ib_ucontext; +enum ib_umem_type { + IB_UMEM_MEM_MAP = 0, + IB_UMEM_IO_MAP +}; + struct ib_umem { struct ib_ucontext *context; + enum ib_umem_type type; size_t length; int offset; int page_size;