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 D699143331 for ; Wed, 15 Nov 2023 03:54:22 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id AD4BC4027B; Wed, 15 Nov 2023 03:54:22 +0100 (CET) Received: from mail-pg1-f180.google.com (mail-pg1-f180.google.com [209.85.215.180]) by mails.dpdk.org (Postfix) with ESMTP id 0EBB340261 for ; Wed, 15 Nov 2023 03:54:20 +0100 (CET) Received: by mail-pg1-f180.google.com with SMTP id 41be03b00d2f7-5bdbe2de25fso4988426a12.3 for ; Tue, 14 Nov 2023 18:54:20 -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=QwbflM+LDwZtZSmdJL+TIfy6EjI5Dd7D0FNCK22OugoLD8TOg7N7cRwifU6ROrHexZ Og9IysPU7GB1fZuzGdskIbFaf3QaV5XPO6CTqX62AOhyjyk75mWEazpC4ep8G5tuyN8T sHjhsLNMroG3UPq+6wUt82p+xMkXpZAjW1exU9+GfvOQbwpAgNk8oVuzlWvOfyqqb7Ep RYrPoZsXNmPeH4f+EjWA32Ht21DhzHkt0OzZqt6mXu769O69YDeM2hIxhdfcV5PziR9n js1UDKT3Ha1+yqbqsFXWU1QVcQCydMeXD5HX3MyprBdvAZVLYMcMPFy6WBUaMhLNhKsA +bbA== X-Gm-Message-State: AOJu0YyecicHFa01lrxjo/IYNaUPgWrKLdgdIfNx2lemalrqoT3QJuNP JJlrXhbIctyDptW2gNZTff+0BQ== 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: stable@dpdk.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: patches for DPDK stable branches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: stable-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?