From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mails.dpdk.org (mails.dpdk.org [217.70.189.124]) by inbox.dpdk.org (Postfix) with ESMTP id C67CA43331; Wed, 15 Nov 2023 03:54:23 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id D6C5B402E4; Wed, 15 Nov 2023 03:54:22 +0100 (CET) Received: from mail-pf1-f181.google.com (mail-pf1-f181.google.com [209.85.210.181]) by mails.dpdk.org (Postfix) with ESMTP id 45C674027B for ; Wed, 15 Nov 2023 03:54:21 +0100 (CET) Received: by mail-pf1-f181.google.com with SMTP id d2e1a72fcca58-6c4eaa5202aso4843101b3a.1 for ; Tue, 14 Nov 2023 18:54:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20230601.gappssmtp.com; s=20230601; t=1700016860; x=1700621660; darn=dpdk.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:from:to:cc:subject:date :message-id:reply-to; bh=NzBp4eG+Mbiw4WF7dB1ybLrAoOMMX7n9ll3tIOz60HM=; b=T/D/a+M4mpbjdOGnXMFpZe1T+Z9EL+JruNR9QrWqpu2oYqMQdr3gPbOe4KJrySi4eq SWDCyMJpLjPKDsC6/feaAGnyVFq8R1LbDEX6au9mIrAPqbTXetQ22+gjFG3jFGssG8rF 8uYwm754Wc2iHU1tep6zP+30obojL+7OX3md64TPO5f/nyUiRi3YSZeQ14uFdeCelnk8 vfyT6FPXYlrP+OTfffMMsVWGR0cn7RRd7GHfSOJaWWoDdWuzdxoYVzZOw6ZgfFWBDj+v /NzHYi+/F/1IBWkFggseSbuljwUgjPlYC5GjQTaxzqXM4Tw/vmNa583s8HPQCm1WNHn8 yyIg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1700016860; x=1700621660; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:subject:cc:to:from:date:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=NzBp4eG+Mbiw4WF7dB1ybLrAoOMMX7n9ll3tIOz60HM=; b=YcRBldVW+HFHUiDuEbI5BuJKSr1s4ayTcDQJYGLdGHuWnWLirfNWyb0A8WR6BF6kHf BQkuyEmAWddogzL9o1uJ/G1WKjIKv89ukbLJ9QTnv7Z9MBn45tNpA9V61hrOTroMC1GK To6TWO6r/i6fwigw9KDNerCaMg8R0PXPbjbkNdY7oW/cZe+WcmGQFPFa/Kx5tlpWMfTy sQ2gohc9jDYt2wLHF+YKW40SUYpRpXIi2z8LuGEe5TGhvRtee5J+l/A0rdJn4QEcVvNw tGJKf1u++XgdMFHKMHjUxfFCDiJb3dznpHs/BRcmcUkrBWwJP/+YG/l8zHbg8Ia3smQN mY5Q== X-Gm-Message-State: AOJu0YziFuq1wfE897sdBii1OjCQCKbGzMc6k9lj+YR1S9Cdv9NUUPXd bn3siX/1U8eKQAv0S08cTqRvyw== X-Google-Smtp-Source: AGHT+IHOfNmljZcagy0vh+PuNmNTmTAljcBPWtUJ+9DHis0TM559ewLl1GOEFf59tl+SHGcSzvBk8g== X-Received: by 2002:a05:6a20:2615:b0:187:2203:e8c with SMTP id i21-20020a056a20261500b0018722030e8cmr2834630pze.42.1700016859851; Tue, 14 Nov 2023 18:54:19 -0800 (PST) Received: from hermes.local (204-195-123-141.wavecable.com. [204.195.123.141]) by smtp.gmail.com with ESMTPSA id b14-20020aa7870e000000b006c0fdc98c89sm1879016pfo.85.2023.11.14.18.54.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 14 Nov 2023 18:54:19 -0800 (PST) Date: Tue, 14 Nov 2023 16:12:15 -0800 From: Stephen Hemminger To: Mingjin Ye Cc: dev@dpdk.org, qiming.yang@intel.com, stable@dpdk.org, Anatoly Burakov Subject: Re: [PATCH] vfio: add get device info API Message-ID: <20231114161203.6e1be299@hermes.local> In-Reply-To: <20231114104816.527818-1-mingjinx.ye@intel.com> References: <20231114104816.527818-1-mingjinx.ye@intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: dev-bounces@dpdk.org On Tue, 14 Nov 2023 10:48:16 +0000 Mingjin Ye wrote: > +/** > + * Get device information > + * > + * This function is only relevant to linux and will return > + * an error on BSD. > + * > + * @param sysfs_base > + * sysfs path prefix. > + * > + * @param dev_addr > + * device location. > + * > + * @param vfio_dev_fd > + * VFIO fd. > + * > + * @param device_info > + * Device information. > + * > + * @return > + * 0 on success. > + * <0 on failure. > + */ > +int > +rte_vfio_get_device_info(const char *sysfs_base, const char *dev_addr, > + int *vfio_dev_fd, struct vfio_device_info *device_info); New api's must be experimental. Or is this just internal?