From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from dpdk.org (dpdk.org [92.243.14.124]) by inbox.dpdk.org (Postfix) with ESMTP id 6FDFCA0350; Sat, 6 Jun 2020 11:17:54 +0200 (CEST) Received: from [92.243.14.124] (localhost [127.0.0.1]) by dpdk.org (Postfix) with ESMTP id C2D601D167; Sat, 6 Jun 2020 11:17:52 +0200 (CEST) Received: from huawei.com (szxga07-in.huawei.com [45.249.212.35]) by dpdk.org (Postfix) with ESMTP id 4D9441D127; Sat, 6 Jun 2020 11:17:50 +0200 (CEST) Received: from DGGEMS414-HUB.china.huawei.com (unknown [172.30.72.58]) by Forcepoint Email with ESMTP id 8386527FEF8A297C85DE; Sat, 6 Jun 2020 17:17:46 +0800 (CST) Received: from localhost (10.173.251.152) by DGGEMS414-HUB.china.huawei.com (10.3.19.214) with Microsoft SMTP Server id 14.3.487.0; Sat, 6 Jun 2020 17:17:39 +0800 From: wangyunjian To: CC: , , , Yunjian Wang , Date: Sat, 6 Jun 2020 17:17:20 +0800 Message-ID: X-Mailer: git-send-email 1.9.5.msysgit.1 MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.173.251.152] X-CFilter-Loop: Reflected Subject: [dpdk-dev] [PATCH] eal: fix return value comment X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org Sender: "dev" From: Yunjian Wang Fix few comments and add detailed comments for return value. Fixes: 279b581c897d ("vfio: expose functions") Cc: stable@dpdk.org Signed-off-by: Yunjian Wang --- lib/librte_eal/include/rte_vfio.h | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/lib/librte_eal/include/rte_vfio.h b/lib/librte_eal/include/rte_vfio.h index 20ed8c4..15172bf 100644 --- a/lib/librte_eal/include/rte_vfio.h +++ b/lib/librte_eal/include/rte_vfio.h @@ -156,7 +156,7 @@ int rte_vfio_setup_device(const char *sysfs_base, const char *dev_addr, * kernel module name. * * @return - * !0 if true. + * 1 if true. * 0 otherwise. */ int rte_vfio_is_enabled(const char *modname); @@ -168,8 +168,9 @@ int rte_vfio_setup_device(const char *sysfs_base, const char *dev_addr, * an error on BSD. * * @return - * !0 if true. - * 0 otherwise. + * 1 if true. + * 0 if false. + * <0 for errors */ int rte_vfio_noiommu_is_enabled(void); -- 1.8.3.1