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 72AAB43A4F; Fri, 2 Feb 2024 13:41:02 +0100 (CET) Received: from mails.dpdk.org (localhost [127.0.0.1]) by mails.dpdk.org (Postfix) with ESMTP id 69DD442E84; Fri, 2 Feb 2024 13:40:50 +0100 (CET) Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.18]) by mails.dpdk.org (Postfix) with ESMTP id 0EB2D42E50 for ; Fri, 2 Feb 2024 13:40:46 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1706877647; x=1738413647; h=from:to:cc:subject:date:message-id:in-reply-to: references:mime-version:content-transfer-encoding; bh=i8OwGytzddBIU9b3SWNszKNUjectXoAlnrfUBjrMvmM=; b=X+mWhS1PuUdWzf9INfMwV//aqJ1WpHa5yOppfZFvXwBNBfLOVUacc/6G 5HtPwjoLGUavnIM5/bLoF/CTp4KX2h8dxobcI5sbigAH1kB1pbj6T5V96 +0iMVjHcLRMSjoHHYzYptSyaUWT1QlVa/i4LhyInuUGIJB2EW0hbjBDaB uHREzd7LY5sqE49f+GYCac7uN2Dnj3mC1E1Q3M/zpFnYkF4Msm+sJebAf tyl1oBQb0hApFs4Zj5EUOCbDrbJ29Q2jYtJHJOe2dEvb5E3nBxp/PxL27 xgKCBYYe+tu6ueZV0Vb8W9KLj52+GEn+bBD5JaOA/SSZKx26SKpyFKxQP A==; X-IronPort-AV: E=McAfee;i="6600,9927,10971"; a="54378" X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="54378" Received: from fmviesa006.fm.intel.com ([10.60.135.146]) by fmvoesa112.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Feb 2024 04:40:44 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.05,238,1701158400"; d="scan'208";a="347593" Received: from silpixa00401385.ir.intel.com ([10.237.214.38]) by fmviesa006.fm.intel.com with ESMTP; 02 Feb 2024 04:40:40 -0800 From: Bruce Richardson To: dev@dpdk.org, jerinj@marvell.com, mattias.ronnblom@ericsson.com Cc: abdullah.sevincer@intel.com, sachin.saxena@oss.nxp.com, hemant.agrawal@nxp.com, pbhagavatula@marvell.com, pravin.pathak@intel.com, Bruce Richardson Subject: [PATCH v3 05/11] eventdev: improve function documentation for query fns Date: Fri, 2 Feb 2024 12:39:47 +0000 Message-Id: <20240202123953.77166-6-bruce.richardson@intel.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20240202123953.77166-1-bruce.richardson@intel.com> References: <20240119174346.108905-1-bruce.richardson@intel.com> <20240202123953.77166-1-bruce.richardson@intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit 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 General improvements to the doxygen docs for eventdev functions for querying basic information: * number of devices * id for a particular device * socket id of device * capability information for a device Signed-off-by: Bruce Richardson --- V3: minor changes following review --- lib/eventdev/rte_eventdev.h | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/lib/eventdev/rte_eventdev.h b/lib/eventdev/rte_eventdev.h index da3f72d89e..3cba13e2c4 100644 --- a/lib/eventdev/rte_eventdev.h +++ b/lib/eventdev/rte_eventdev.h @@ -448,8 +448,7 @@ struct rte_event; */ /** - * Get the total number of event devices that have been successfully - * initialised. + * Get the total number of event devices. * * @return * The total number of usable event devices. @@ -464,8 +463,10 @@ rte_event_dev_count(void); * Event device name to select the event device identifier. * * @return - * Returns event device identifier on success. - * - <0: Failure to find named event device. + * Event device identifier (dev_id >= 0) on success. + * Negative error code on failure: + * - -EINVAL - input name parameter is invalid. + * - -ENODEV - no event device found with that name. */ int rte_event_dev_get_dev_id(const char *name); @@ -478,7 +479,8 @@ rte_event_dev_get_dev_id(const char *name); * @return * The NUMA socket id to which the device is connected or * a default of zero if the socket could not be determined. - * -(-EINVAL) dev_id value is out of range. + * -EINVAL on error, where the given dev_id value does not + * correspond to any event device. */ int rte_event_dev_socket_id(uint8_t dev_id); @@ -574,18 +576,20 @@ struct rte_event_dev_info { }; /** - * Retrieve the contextual information of an event device. + * Retrieve details of an event device's capabilities and configuration limits. * * @param dev_id * The identifier of the device. * * @param[out] dev_info * A pointer to a structure of type *rte_event_dev_info* to be filled with the - * contextual information of the device. + * information about the device's capabilities. * * @return - * - 0: Success, driver updates the contextual information of the event device - * - <0: Error code returned by the driver info get function. + * - 0: Success, information about the event device is present in dev_info. + * - <0: Failure, error code returned by the function. + * - -EINVAL - invalid input parameters, e.g. incorrect device id. + * - -ENOTSUP - device does not support returning capabilities information. */ int rte_event_dev_info_get(uint8_t dev_id, struct rte_event_dev_info *dev_info); -- 2.40.1