Received: by 10.192.165.148 with SMTP id m20csp68108imm; Fri, 20 Apr 2018 03:10:21 -0700 (PDT) X-Google-Smtp-Source: AIpwx48OaMN86nElliRf5DoQXuqK3qGaflSSgfFMROZ6Rsj734Myn/vC1bQP3Bx4c7rGahyYyAiw X-Received: by 2002:a17:902:3265:: with SMTP id y92-v6mr9693630plb.352.1524219021245; Fri, 20 Apr 2018 03:10:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1524219021; cv=none; d=google.com; s=arc-20160816; b=EIOU5zWQbUxCQjDVRrkSBOd0QA2ph81AhDLuMmcKC471kbrFdco2yTCdRWA7Dl1RYP QvGaUkfivtLIVEPTovUaVn/UVr1tL+ypSkk4ofTHpftwOhYPecjXG+cyGBlms9j77PJd ez7ILG7mRwMv7LRczCOUj6M3M3Pcpp7PphIlKHXqdEZBsPmowJkDa6sWOOxSTwYimQIy S1DVA6xe8H+5YSsSdm969VfUsBp6hAM2yP5vUw4Cm90YPH33bD0ev1SsYU5CuLPDrk6c Ju2EFyICbfltyvKz8fL1/mp/XKBV4/7bQ7z0NvDvO+89YLJwbmLhjo6swgHXciWLrGyg U08Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:in-reply-to :mime-version:user-agent:date:message-id:from:cc:to:references :subject:arc-authentication-results; bh=CCy1nGTUkFMxQNaYYzvvAtDO9aHtTJmyJfdgZ23HJyI=; b=HDvgR+r98kcFys7+M0BGD03QYmgoKH/oiSsHy3tZ5i/j9VU7WGGr6fbYeT7YJ2r9ye p4vow90cJG69gbLOAEeRYHO1j66ay4wnmPnJWumWsq1J/7wu7TdTzvscwiabpwsj6QQT JwkJo3C0o2vXOMNR3iNN7zTRJ+imwF4Rutlca7/FpdsuQtsmgSIJ0j3RqY1Nx52BpHVi +SkSI4hmbXhskCTWR8fLi4qG8GqbUpjhZzCCgW8uviHoKR0ZtS+ZK9iDx+LqnT3nAf5i +P4oNFd94KqO8iF7bQbczIRokNW6o1FYcslLtLdv4UgzpfjvlUtUnFH3BoZZITzBgLKH D0cA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id t25si4379262pge.26.2018.04.20.03.10.07; Fri, 20 Apr 2018 03:10:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754591AbeDTKHv (ORCPT + 99 others); Fri, 20 Apr 2018 06:07:51 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:7186 "EHLO huawei.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1754545AbeDTKHs (ORCPT ); Fri, 20 Apr 2018 06:07:48 -0400 Received: from DGGEMS406-HUB.china.huawei.com (unknown [172.30.72.60]) by Forcepoint Email with ESMTP id 92EE01A6A5D6F; Fri, 20 Apr 2018 18:07:35 +0800 (CST) Received: from [127.0.0.1] (10.63.195.168) by DGGEMS406-HUB.china.huawei.com (10.3.19.206) with Microsoft SMTP Server id 14.3.361.1; Fri, 20 Apr 2018 18:07:36 +0800 Subject: [PATCH] VFIO: Fix Documentation References: <1524218521-61496-1-git-send-email-zhangshaokun@hisilicon.com> To: , CC: , , "linux-kernel@vger.kernel.org" From: "dongbo (E)" X-Forwarded-Message-Id: <1524218521-61496-1-git-send-email-zhangshaokun@hisilicon.com> Message-ID: <36f5940b-cac5-9a4a-86cb-7ad9766d5d62@huawei.com> Date: Fri, 20 Apr 2018 18:07:27 +0800 User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <1524218521-61496-1-git-send-email-zhangshaokun@hisilicon.com> Content-Type: text/plain; charset="windows-1252" Content-Transfer-Encoding: 7bit X-Originating-IP: [10.63.195.168] X-CFilter-Loop: Reflected Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Dong Bo Signed-off-by: Dong Bo --- Documentation/vfio.txt | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Documentation/vfio.txt b/Documentation/vfio.txt index ef6a511..f1a4d3c 100644 --- a/Documentation/vfio.txt +++ b/Documentation/vfio.txt @@ -252,15 +252,14 @@ into VFIO core. When devices are bound and unbound to the driver, the driver should call vfio_add_group_dev() and vfio_del_group_dev() respectively:: - extern int vfio_add_group_dev(struct iommu_group *iommu_group, - struct device *dev, + extern int vfio_add_group_dev(struct device *dev, const struct vfio_device_ops *ops, void *device_data); extern void *vfio_del_group_dev(struct device *dev); vfio_add_group_dev() indicates to the core to begin tracking the -specified iommu_group and register the specified dev as owned by +iommu_group of the specified dev and register the dev as owned by a VFIO bus driver. The driver provides an ops structure for callbacks similar to a file operations structure:: -- 1.9.1 .