From patchwork Tue Apr 18 16:21:32 2023 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: 674523 Delivered-To: patch@linaro.org Received: by 2002:a5d:4a41:0:0:0:0:0 with SMTP id v1csp59131wrs; Tue, 18 Apr 2023 09:24:00 -0700 (PDT) X-Google-Smtp-Source: AKy350YWcXwOvWk88bX90oMK3OrJy2AcP9wm8/l+4AKKpAHO6aKz7TR+TL9DN2FNbQZMU7QSa9AU X-Received: by 2002:ad4:5bcb:0:b0:5a9:609d:e23c with SMTP id t11-20020ad45bcb000000b005a9609de23cmr25222648qvt.34.1681835040097; Tue, 18 Apr 2023 09:24:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1681835040; cv=none; d=google.com; s=arc-20160816; b=0DitEH4P0xOQjtDCv3kfDhSjkzwAEpd0rMqPHpXuG+uIEyYa4kiBH/UmQ/gQkEkEbS 5dCFvZRGsYntC7hvgvPEgqoCCYGt1dqhjYAFI0zILt30/uX3rmr47XkW5++UF7FpFFbx iQ8f4Y4nLm+wKxjAHtnzbzYNx9Gwgrp7pxX2pLGVcOwclMf4Aj6pcODNCSPdv4c3A5H1 8PTOS9m6+lxdYALyKIVJkpm2mqQmtB1DWxk4J9vOQ0h8RMxBwJO77mjXjdhG3QUg9PY5 lU/2GN1Xgeqmi7xogJSOG5OTKKK6nHwUxXgwQ6UyuRrpXOSmGMBYJ0D1s5aXKtkaKyUO MghQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to: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:cc:to :from:dkim-signature; bh=9tB5/chm/xr33XCg/P0FBnvaCeSkgyIRzyFrSzsSo0k=; b=Zru9qJOBaFPfePMRR0PeXGkoxCyrovlLENWUd7BIrjwiHoDLBAsBt8NSg3DMnIx2CK EC+AxjQ/yi7DPvzaq6PbXLfw66B/4lcy5yzIDbNlY+0r95/3koqAsDPRFPSE0llyI/+X koq0ux2Gv8YnMxbkrSuehvO2eC/5EkxmFZkn9YWlcCh6PkiIdNRA7uE8tC39HiE283mt A0niSZIyNXAPw8Fotu68hcT6Nz32AFEB0pCKDmRDIpwbzf5CKEFvASUmvLGwKo/ZNZ7/ 8exeVI1C7cr6at6VYCjKZU9otkA+wzG8+IPzDbWtWZKcnoY/8S6K7bbHKg/N9NSJpcDH 8bpQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="uxF/LM8P"; 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=pass (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 t10-20020ad45bca000000b0056ef275d752si7398883qvt.481.2023.04.18.09.23.59 for (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Tue, 18 Apr 2023 09:24:00 -0700 (PDT) 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=pass header.i=@linaro.org header.s=google header.b="uxF/LM8P"; 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=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1poo5V-0006ms-Fj; Tue, 18 Apr 2023 12:21:49 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1poo5S-0006lE-I4 for qemu-devel@nongnu.org; Tue, 18 Apr 2023 12:21:46 -0400 Received: from mail-wr1-x429.google.com ([2a00:1450:4864:20::429]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1poo5R-0001AV-1S for qemu-devel@nongnu.org; Tue, 18 Apr 2023 12:21:46 -0400 Received: by mail-wr1-x429.google.com with SMTP id ffacd0b85a97d-2efbaad9d76so2355641f8f.0 for ; Tue, 18 Apr 2023 09:21:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1681834903; x=1684426903; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=9tB5/chm/xr33XCg/P0FBnvaCeSkgyIRzyFrSzsSo0k=; b=uxF/LM8P9SZYpCizN3Zui8qVlBYHD8UmnmrC1P4/cPHgzoMR+6tpEocqtb4OTObdFu MkKKQLOd1q0sqZlccxyH79EF8Db7LqSH5t0w6Kz6I1XZaW+wf3uDOiFWRaXBNVT+Sosk 1fdAurJNSm2ochL9YoawEwmvEVBOBOR73UBembnnlJRi35X+u2AHAbjvX25jWfbtoM7o l0tjtL1FEYufZXHPZxvC2aBfP/FDGzY09bo3q6ZCjvzCp0GRuxM/va62LMOY0UN8C2SG Clwy3iaEr3rEXPYtcaBYs2rBsHDMhCblSAqmqIGWohtaZZnUJzou1hJ3TDc36wjPmCnl K75g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1681834903; x=1684426903; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=9tB5/chm/xr33XCg/P0FBnvaCeSkgyIRzyFrSzsSo0k=; b=RW3YyFijaP8QK5f+W1g7PBHkK3YCERPuFjRfhLiwUTNQjraZtV2RXInXW7YrBYX5AU 6zlUiS+W27FbeRe2pTvs0imACMg+TXdrFlBPBnScWL6B7u3Yj6qZ0gw7exGHdZjY52kG PHdCdkFeFqu34VIbjIWJYnNObKvQZyVVIuF/utQeHofP1DwD5z72i/YAgJsFVXyEE0js UWDz8ZVI3aO//0yRDtU/sbR8gNYCduzvghx9uPpqLd04pGG5oy+0X1B2DQptwzOkHcS7 z26Non4YuiGbyBvob2rrveIFWyk21q47GMDZHt8FLHjPeA2sQ6WW2DbUK1eV3ktaOvCL 9TPg== X-Gm-Message-State: AAQBX9f4REPFKQql0e7G5unliSJ+DVxlKmQsa8wiZw/vllWS+CmgLLf+ +E+urzk189ZfMpPUE5fOJ/y8CQ== X-Received: by 2002:adf:ef8b:0:b0:2ef:8c85:771b with SMTP id d11-20020adfef8b000000b002ef8c85771bmr2392857wro.51.1681834903650; Tue, 18 Apr 2023 09:21:43 -0700 (PDT) Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id x11-20020adff0cb000000b002f9ff443184sm6499966wro.24.2023.04.18.09.21.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 18 Apr 2023 09:21:42 -0700 (PDT) Received: from zen.lan (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id AD4911FFBD; Tue, 18 Apr 2023 17:21:40 +0100 (BST) From: =?utf-8?q?Alex_Benn=C3=A9e?= To: qemu-devel@nongnu.org Cc: =?utf-8?q?Alex_Benn=C3=A9e?= , =?utf-8?q?Daniel_?= =?utf-8?q?P=2E_Berrang=C3=A9?= , Eduardo Habkost , Viresh Kumar , Mathieu Poirier , "Gonglei (Arei)" , Markus Armbruster , Erik Schilling , Jason Wang , Mark Cave-Ayland , Gerd Hoffmann , virtio-fs@redhat.com, =?utf-8?q?Marc-And?= =?utf-8?q?r=C3=A9_Lureau?= , Paolo Bonzini , "Michael S. Tsirkin" , Stefan Hajnoczi , Eric Blake Subject: [PATCH v2 05/13] include/hw/virtio: add kerneldoc for virtio_init Date: Tue, 18 Apr 2023 17:21:32 +0100 Message-Id: <20230418162140.373219-6-alex.bennee@linaro.org> X-Mailer: git-send-email 2.39.2 In-Reply-To: <20230418162140.373219-1-alex.bennee@linaro.org> References: <20230418162140.373219-1-alex.bennee@linaro.org> MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::429; envelope-from=alex.bennee@linaro.org; helo=mail-wr1-x429.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, 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+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org Signed-off-by: Alex Bennée Reviewed-by: Mark Cave-Ayland Reviewed-by: Stefan Hajnoczi --- include/hw/virtio/virtio.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/hw/virtio/virtio.h b/include/hw/virtio/virtio.h index 22ec098462..1ba7a9dd74 100644 --- a/include/hw/virtio/virtio.h +++ b/include/hw/virtio/virtio.h @@ -217,6 +217,12 @@ struct VirtioDeviceClass { void virtio_instance_init_common(Object *proxy_obj, void *data, size_t vdev_size, const char *vdev_name); +/** + * virtio_init() - initialise the common VirtIODevice structure + * @vdev: pointer to VirtIODevice + * @device_id: the VirtIO device ID (see virtio_ids.h) + * @config_size: size of the config space + */ void virtio_init(VirtIODevice *vdev, uint16_t device_id, size_t config_size); void virtio_cleanup(VirtIODevice *vdev);