From patchwork Fri Mar 12 17:28:13 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Alex_Benn=C3=A9e?= X-Patchwork-Id: 398694 Delivered-To: patch@linaro.org Received: by 2002:a02:8562:0:0:0:0:0 with SMTP id g89csp1427440jai; Fri, 12 Mar 2021 10:28:47 -0800 (PST) X-Google-Smtp-Source: ABdhPJxF7K1nEGj72QsOfGqDmRasmyc2cEyPw1BMWIujogOGTyTszdiVdsomfZPevxqfwIz3KD8w X-Received: by 2002:a92:c6d0:: with SMTP id v16mr3504210ilm.289.1615573727748; Fri, 12 Mar 2021 10:28:47 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1615573727; cv=none; d=google.com; s=arc-20160816; b=nclOz64rrvIer6hNVibSTZNTMgVWni2FwSWqvTqO6Thpw/z+EhujuUmL5dlZgFFAEb 7XflJNyMfynAkQxW/x3jkY8l98IQUTwI71u2Ii3VNiotp3qrW9eoDSQt5VjumIOn7Uoc 5JSN4hvO+Gw5FonMb0QI8e50gUHhiWou3nwaxIIX2KTWAycEb6m7CcInaJUi6YXDAE0O a603sJF0/4vfK9jN36S9L4pw9FX+JzzzuXY/l66b0sopgsU+1TloY+j3fttuHne5cL+A pNi/K/3mA2/ogmVAs2qfjF+k4d7fwj7jCjH7w406dlVjZWrDuUaS4mHHBM7aPACHhCDV /k0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:cc:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:to:from :dkim-signature; bh=YVUJJy2xlHw8BI+XuObyfKh7efsezZH+aMO25WODlwg=; b=kcT765Bc432ZPUPc+GhlcxHsI4Z2VrXxxqtqn/kEfBaWX6TNGYJhYzbSbs/y2fehem n4iI5nXLI8MfCxh9upWX3c5H+Cxa2NgGXn4ae3/ypgn+CPOZ5hd+6HHNGSjxaGvMvHOF iT2yu5K1bMwVuXELmM4LZ4WXnTR4fHuXpMDHWBnMZC5j1hAYoQO3yMB7YhvAaGOSIYaR d9TQt/XJ41/58hR27sC/j3DjYl6KtrZGqd+aKsoK8uvKcllleQpJgKb3/fVlzW2XdYug 8MZ1ASf5sFOhfwzjUOHo72j+za7YInVn2LiiiliO3Wr4yvoM7CLDRKDc6p+sP/AEferP T2QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QvFntIfZ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id q8si5683621ilm.72.2021.03.12.10.28.47 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Mar 2021 10:28:47 -0800 (PST) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=fail header.i=@linaro.org header.s=google header.b=QvFntIfZ; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1]:45344 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lKmWl-0003S4-5J for patch@linaro.org; Fri, 12 Mar 2021 13:28:47 -0500 Received: from eggs.gnu.org ([2001:470:142:3::10]:59454) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lKlai-0004Cn-QD for qemu-devel@nongnu.org; Fri, 12 Mar 2021 12:28:48 -0500 Received: from mail-ed1-x533.google.com ([2a00:1450:4864:20::533]:39756) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1lKlaT-0002D3-IT for qemu-devel@nongnu.org; Fri, 12 Mar 2021 12:28:48 -0500 Received: by mail-ed1-x533.google.com with SMTP id bf3so9046458edb.6 for ; Fri, 12 Mar 2021 09:28:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=YVUJJy2xlHw8BI+XuObyfKh7efsezZH+aMO25WODlwg=; b=QvFntIfZ1XxtI9NoPD4fAdJI7JPE7rk/U1ZXxHuDm9qIz5I9wr90J/HVH3qhijv7+Y sVUIHHk5+LMaZi2OFtOLZB3nMaJhLvDFIvzL41nlXxq11gvimX9l/NLXVjaAK45H1dEe tQc5Etj7koz6qptEO2gR/LhpPElG7bpI+IrEYtAEWEZyizi2y/Mn6N1ZPF9F05jgdzqB eydjlDMCUFaE4VWEHdnQms5QY7uFABGu6U3MtrmrOBQR8ueLWDMfuJbRxnuaShYFVAjB eTe/3izquMbq8XSz00lQNAum3xcGwcVXUVIjRHgoLxisCI/vyr1CQR6f7yXU8ilYilqh nskw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=YVUJJy2xlHw8BI+XuObyfKh7efsezZH+aMO25WODlwg=; b=YP+AvobBO12lSB3ShQrVMVRL8MV9XXxdQXshPtdXDwJs1wQCCJV6PVBrmkUyX4y7uY FBAaU+9QJHUDvd8D8TT7HJMmRQVVAu+6PZCBi4qLK3mW74U1JFfNrs5j57ZbzTCms9f9 KQG7XZIqgcDMWPQQgiXmj/6RE5hLcW7RicN3dLw+0EG/PUB6t4PxbarsCh56Zan4fT1l ht0fdQPrXZtnczp3b1uoF+VkiuIET+Rt7Z/Xgk1zHTVSYLMYy+37de3oj0ID+i40LYmv aNuGT6GY+DGXGAJmkCiUdoKy2tIgUaA5n5Gpa0oF8cokg7OGMdC9PgaX4j4/A8lRrOgd qLRw== X-Gm-Message-State: AOAM531fT0NDxJ2py7/wsjZtbRIIIppphUttTNUtHiDcwtnXF4DD22vh UPD1Y8ahwhhemvneZOxlTEHwkg== X-Received: by 2002:a05:6402:5189:: with SMTP id q9mr15320645edd.168.1615570112273; Fri, 12 Mar 2021 09:28:32 -0800 (PST) Received: from zen.linaroharston ([51.148.130.216]) by smtp.gmail.com with ESMTPSA id r17sm3274241edt.70.2021.03.12.09.28.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Mar 2021 09:28:27 -0800 (PST) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 478811FF92; Fri, 12 Mar 2021 17:28:22 +0000 (GMT) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Subject: [PATCH v1 06/14] plugins: expand the callback typedef kernel-docs Date: Fri, 12 Mar 2021 17:28:13 +0000 Message-Id: <20210312172821.31647-7-alex.bennee@linaro.org> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20210312172821.31647-1-alex.bennee@linaro.org> References: <20210312172821.31647-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::533; envelope-from=alex.bennee@linaro.org; helo=mail-ed1-x533.google.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, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: robhenry@microsoft.com, mahmoudabdalghany@outlook.com, aaron@os.amperecomputing.com, cota@braap.org, kuhn.chenqun@huawei.com, =?utf-8?q?Alex_Benn=C3=A9e?= Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: "Qemu-devel" Signed-off-by: Alex Bennée --- include/qemu/qemu-plugin.h | 25 ++++++++++++++++++++++--- 1 file changed, 22 insertions(+), 3 deletions(-) -- 2.20.1 Reviewed-by: Aaron Lindsay diff --git a/include/qemu/qemu-plugin.h b/include/qemu/qemu-plugin.h index ac1bb318da..09b235f0b4 100644 --- a/include/qemu/qemu-plugin.h +++ b/include/qemu/qemu-plugin.h @@ -99,17 +99,36 @@ QEMU_PLUGIN_EXPORT int qemu_plugin_install(qemu_plugin_id_t id, const qemu_info_t *info, int argc, char **argv); -/* - * Prototypes for the various callback styles we will be registering - * in the following functions. +/** + * typedef qemu_plugin_simple_cb_t - simple callback + * @id: the unique qemu_plugin_id_t + * + * This call-back passes no information aside from the unique @id. */ typedef void (*qemu_plugin_simple_cb_t)(qemu_plugin_id_t id); +/** + * typedef qemu_plugin_udata_cb_t - callback with user data + * @id: the unique qemu_plugin_id_t + * @userdata: a pointer to some user data supplied when the call-back + * was registered. + */ typedef void (*qemu_plugin_udata_cb_t)(qemu_plugin_id_t id, void *userdata); +/** + * typedef qemu_plugin_vcpu_simple_cb_t - vcpu callback + * @id: the unique qemu_plugin_id_t + * @vcpu_index: the current vcpu context + */ typedef void (*qemu_plugin_vcpu_simple_cb_t)(qemu_plugin_id_t id, unsigned int vcpu_index); +/** + * typedef qemu_plugin_vcpu_udata_cb_t - vcpu callback + * @vcpu_index: the current vcpu context + * @userdata: a pointer to some user data supplied when the call-back + * was registered. + */ typedef void (*qemu_plugin_vcpu_udata_cb_t)(unsigned int vcpu_index, void *userdata);