From: Yunjian Wang Date: Sat, 6 Jun 2020 09:17:20 +0000 (+0800) Subject: vfio: fix API description X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=8d63961fc7137cab823f85a50ee82779792f21e4;p=dpdk.git vfio: fix API description Fix few comments and add detailed comments for return value. Fixes: 279b581c897d ("vfio: expose functions") Cc: stable@dpdk.org Signed-off-by: Yunjian Wang Acked-by: Anatoly Burakov --- diff --git a/lib/librte_eal/include/rte_vfio.h b/lib/librte_eal/include/rte_vfio.h index 20ed8c45a9..e7a87454be 100644 --- a/lib/librte_eal/include/rte_vfio.h +++ b/lib/librte_eal/include/rte_vfio.h @@ -156,7 +156,7 @@ int rte_vfio_enable(const char *modname); * 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_is_enabled(const char *modname); * 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);