From nobody Mon Feb 9 10:50:05 2026 Delivered-To: importer@patchew.org Authentication-Results: mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass(p=quarantine dis=none) header.from=crudebyte.com ARC-Seal: i=1; a=rsa-sha256; t=1646316762; cv=none; d=zohomail.com; s=zohoarc; b=LKrtFzXiv6fQIH9nt2gX1kKWwj8inivmSHlK0zXUkcb82QzjhhCG5urrIgATU6/02l9CnLOhvx9w8pZDD7nqGWNAHH426yhVGLIrxDlb362H1oix9irB33b2YfcDqLjJ8hnXh4V36jxfkTE/r/CwkGUCBG+hTXMax/q13eD2DYA= ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=zohomail.com; s=zohoarc; t=1646316762; h=Cc:Date:From:In-Reply-To:List-Subscribe:List-Post:List-Id:List-Archive:List-Help:List-Unsubscribe:Message-ID:References:Sender:Subject:To; bh=Af/BjitTk4JBVIjOQi8IT8c4pCz9XxdggxpmyrGmP4c=; b=FntPUC+x9bnpwWp9fSFrjR4Cmc+vcBPlF8l2dCH5JanZ8SwXXNtuMEpmsO33md/DdGZvWmPwEWIWDqmgKsT9mJtDXmbEO8dBsetK3z3A42LFGrKhzXXOo8RQXp3j1iotKNsvwKSkrOS3nh78gy5c/DTKokn4JHGThvGnpdYUEY8= ARC-Authentication-Results: i=1; mx.zohomail.com; dkim=pass; spf=pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=qemu-devel-bounces+importer=patchew.org@nongnu.org; dmarc=pass header.from= (p=quarantine dis=none) Return-Path: Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mx.zohomail.com with SMTPS id 1646316762303132.64320065917548; Thu, 3 Mar 2022 06:12:42 -0800 (PST) Received: from localhost ([::1]:55260 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1nPmC9-0002Hv-PV for importer@patchew.org; Thu, 03 Mar 2022 09:12:41 -0500 Received: from eggs.gnu.org ([209.51.188.92]:54078) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPmBL-0001Wb-3B for qemu-devel@nongnu.org; Thu, 03 Mar 2022 09:11:51 -0500 Received: from lizzy.crudebyte.com ([91.194.90.13]:38101) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1nPmBJ-00050p-HZ for qemu-devel@nongnu.org; Thu, 03 Mar 2022 09:11:50 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=crudebyte.com; s=lizzy; h=Cc:To:Subject:Date:From:References:In-Reply-To: Message-Id:Content-Type:Content-Transfer-Encoding:MIME-Version:Content-ID: Content-Description; bh=Af/BjitTk4JBVIjOQi8IT8c4pCz9XxdggxpmyrGmP4c=; b=RjEpX KxNMuuivjvFLlueoMgYExW5UU2PYoZ0EBAMEIdcqvTJo8lIosVMRaU/q/8vYacmHkc3SBpEyOhIGX T7BXmhUOr4Lm+KH8GYZYCB6MvPEcoPIzP2OLHxoceDR7YEl+fxAqQDrVACXISc/MLCC+3G1buyi4j a7SVBqUKTFuhuICmPLapNGkvK31Lao4IdkXIRaj92+8mzWNzMIUUHbW4gFI1UAzHZov0etKP3erPG m4BsxZosdPpYZbxpMWpshEMFIaLNdR8q72b3ak9eTsIthHNO4UOErrgE1oE82jii33vdBY2LtrMbT RuhY+phndl5cfw9qqeQ8rtdl1NXyg==; Message-Id: In-Reply-To: References: From: Christian Schoenebeck Date: Thu, 3 Mar 2022 13:52:14 +0100 Subject: [PATCH 2/6] 9pfs/codir.c: convert Doxygen -> kerneldoc format To: qemu-devel@nongnu.org Cc: Greg Kurz Received-SPF: pass (zohomail.com: domain of gnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; envelope-from=qemu-devel-bounces+importer=patchew.org@nongnu.org; helo=lists.gnu.org; Received-SPF: none client-ip=91.194.90.13; envelope-from=c76be7d38ea448c6417b2ffb5ccd6b711519a878@lizzy.crudebyte.com; helo=lizzy.crudebyte.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, SPF_HELO_NONE=0.001, SPF_NONE=0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+importer=patchew.org@nongnu.org Sender: "Qemu-devel" X-ZohoMail-DKIM: pass (identity @crudebyte.com) X-ZM-MESSAGEID: 1646316764417100001 Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" API doc comments in QEMU are supposed to be in kerneldoc format, so convert API doc comments from Doxygen format to kerneldoc format. Signed-off-by: Christian Schoenebeck --- hw/9pfs/codir.c | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/hw/9pfs/codir.c b/hw/9pfs/codir.c index f96d8ac4e6..75148bc985 100644 --- a/hw/9pfs/codir.c +++ b/hw/9pfs/codir.c @@ -184,14 +184,25 @@ out: } =20 /** - * @brief Reads multiple directory entries in one rush. + * v9fs_co_readdir_many() - Reads multiple directory entries in one rush. + * + * @pdu: the causing 9p (T_readdir) client request + * @fidp: already opened directory where readdir shall be performed on + * @entries: output for directory entries (must not be NULL) + * @offset: initial position inside the directory the function shall + * seek to before retrieving the directory entries + * @maxsize: maximum result message body size (in bytes) + * @dostat: whether a stat() should be performed and returned for + * each directory entry + * Return: resulting response message body size (in bytes) on success, + * negative error code otherwise * * Retrieves the requested (max. amount of) directory entries from the fs * driver. This function must only be called by the main IO thread (top ha= lf). * Internally this function call will be dispatched to a background IO thr= ead * (bottom half) where it is eventually executed by the fs driver. * - * @discussion Acquiring multiple directory entries in one rush from the fs + * Acquiring multiple directory entries in one rush from the fs * driver, instead of retrieving each directory entry individually, is very * beneficial from performance point of view. Because for every fs driver * request latency is added, which in practice could lead to overall @@ -199,20 +210,9 @@ out: * directory) if every directory entry was individually requested from fs * driver. * - * @note You must @b ALWAYS call @c v9fs_free_dirents(entries) after calli= ng + * NOTE: You must ALWAYS call v9fs_free_dirents(entries) after calling * v9fs_co_readdir_many(), both on success and on error cases of this - * function, to avoid memory leaks once @p entries are no longer needed. - * - * @param pdu - the causing 9p (T_readdir) client request - * @param fidp - already opened directory where readdir shall be performed= on - * @param entries - output for directory entries (must not be NULL) - * @param offset - initial position inside the directory the function shall - * seek to before retrieving the directory entries - * @param maxsize - maximum result message body size (in bytes) - * @param dostat - whether a stat() should be performed and returned for - * each directory entry - * @returns resulting response message body size (in bytes) on success, - * negative error code otherwise + * function, to avoid memory leaks once @entries are no longer needed. */ int coroutine_fn v9fs_co_readdir_many(V9fsPDU *pdu, V9fsFidState *fidp, struct V9fsDirEnt **entries, --=20 2.30.2