mirror of
https://github.com/qemu/qemu.git
synced 2026-02-04 02:24:38 +00:00
qapi: rephrase return docs to avoid type name
"Returns: <description>" is rendered like "Return: <Type> – <description>". Mentioning the type in the description again is commonly redundant. Rephrase such descriptions not to. Well, I tried. Maybe not very hard. Sorry! Signed-off-by: John Snow <jsnow@redhat.com> Message-ID: <20250711051045.51110-5-jsnow@redhat.com> Acked-by: Markus Armbruster <armbru@redhat.com> [Commit message amended to explain why] Signed-off-by: Markus Armbruster <armbru@redhat.com>
This commit is contained in:
committed by
Markus Armbruster
parent
0462da9d6b
commit
f7296f8de5
@@ -764,7 +764,7 @@
|
||||
#
|
||||
# Get a list of BlockInfo for all virtual block devices.
|
||||
#
|
||||
# Returns: a list of @BlockInfo describing each virtual block device.
|
||||
# Returns: a list describing each virtual block device.
|
||||
# Filter nodes that were created implicitly are skipped over.
|
||||
#
|
||||
# Since: 0.14
|
||||
@@ -1169,7 +1169,7 @@
|
||||
# nodes that were created implicitly are skipped over in this
|
||||
# mode. (Since 2.3)
|
||||
#
|
||||
# Returns: A list of @BlockStats for each virtual block devices.
|
||||
# Returns: A list of statistics for each virtual block device.
|
||||
#
|
||||
# Since: 0.14
|
||||
#
|
||||
@@ -1441,7 +1441,7 @@
|
||||
#
|
||||
# Return information about long-running block device operations.
|
||||
#
|
||||
# Returns: a list of @BlockJobInfo for each active block job
|
||||
# Returns: a list of job info for each active block job
|
||||
#
|
||||
# Since: 1.1
|
||||
##
|
||||
|
||||
@@ -473,7 +473,7 @@
|
||||
##
|
||||
# @query-block-exports:
|
||||
#
|
||||
# Returns: A list of BlockExportInfo describing all block exports
|
||||
# Returns: A list describing all block exports
|
||||
#
|
||||
# Since: 5.2
|
||||
##
|
||||
|
||||
@@ -89,7 +89,7 @@
|
||||
# Return a list of information about each persistent reservation
|
||||
# manager.
|
||||
#
|
||||
# Returns: a list of @PRManagerInfo for each persistent reservation
|
||||
# Returns: a list of manager info for each persistent reservation
|
||||
# manager
|
||||
#
|
||||
# Since: 3.0
|
||||
|
||||
@@ -95,8 +95,7 @@
|
||||
#
|
||||
# Return the current version of QEMU.
|
||||
#
|
||||
# Returns: A @VersionInfo object describing the current version of
|
||||
# QEMU.
|
||||
# Returns: An object describing the current version of QEMU.
|
||||
#
|
||||
# Since: 0.14
|
||||
#
|
||||
@@ -133,7 +132,7 @@
|
||||
#
|
||||
# Return a list of supported QMP commands by this server
|
||||
#
|
||||
# Returns: A list of @CommandInfo for all supported commands
|
||||
# Returns: A list of all supported commands
|
||||
#
|
||||
# Since: 0.14
|
||||
#
|
||||
|
||||
@@ -148,7 +148,7 @@
|
||||
#
|
||||
# Query latest dump status.
|
||||
#
|
||||
# Returns: A @DumpStatus object showing the dump status.
|
||||
# Returns: An object showing the dump status.
|
||||
#
|
||||
# Since: 2.6
|
||||
#
|
||||
@@ -199,8 +199,7 @@
|
||||
#
|
||||
# Return the available formats for dump-guest-memory
|
||||
#
|
||||
# Returns: A @DumpGuestMemoryCapability object listing available
|
||||
# formats for dump-guest-memory
|
||||
# Returns: An object listing available formats for dump-guest-memory
|
||||
#
|
||||
# Since: 2.0
|
||||
#
|
||||
|
||||
@@ -36,10 +36,10 @@
|
||||
# string into a specific enum or from one specific type into an
|
||||
# alternate that includes the original type alongside something else.
|
||||
#
|
||||
# Returns: array of @SchemaInfo, where each element describes an
|
||||
# entity in the ABI: command, event, type, ...
|
||||
# Returns: an array where each element describes an entity in the ABI:
|
||||
# command, event, type, ...
|
||||
#
|
||||
# The order of the various SchemaInfo is unspecified; however, all
|
||||
# The order of the various elements is unspecified; however, all
|
||||
# names are guaranteed to be unique (no name will be duplicated
|
||||
# with different meta-types).
|
||||
#
|
||||
|
||||
@@ -297,7 +297,7 @@
|
||||
#
|
||||
# Return information about jobs.
|
||||
#
|
||||
# Returns: a list with a @JobInfo for each active job
|
||||
# Returns: a list with info for each active job
|
||||
#
|
||||
# Since: 3.0
|
||||
##
|
||||
|
||||
@@ -163,7 +163,7 @@
|
||||
# 'sev-guest' confidential virtualization object. The launch
|
||||
# measurement for SEV-SNP guests is only available within the guest.
|
||||
#
|
||||
# Returns: The @SevLaunchMeasureInfo for the guest
|
||||
# Returns: The guest's SEV guest launch measurement info
|
||||
#
|
||||
# Errors:
|
||||
# - If the launch measurement is unavailable, either due to an
|
||||
|
||||
@@ -107,7 +107,7 @@
|
||||
# declared using the ``-object iothread`` command-line option. It
|
||||
# is always the main thread of the process.
|
||||
#
|
||||
# Returns: a list of @IOThreadInfo for each iothread
|
||||
# Returns: a list of info for each iothread
|
||||
#
|
||||
# Since: 2.0
|
||||
#
|
||||
@@ -511,8 +511,7 @@
|
||||
#
|
||||
# @option: option name
|
||||
#
|
||||
# Returns: list of @CommandLineOptionInfo for all options (or for the
|
||||
# given @option).
|
||||
# Returns: list of objects for all options (or for the given @option).
|
||||
#
|
||||
# Errors:
|
||||
# - if the given @option doesn't exist
|
||||
|
||||
@@ -847,7 +847,7 @@
|
||||
#
|
||||
# @name: net client name
|
||||
#
|
||||
# Returns: list of @RxFilterInfo for all NICs (or for the given NIC).
|
||||
# Returns: list of info for all NICs (or for the given NIC).
|
||||
#
|
||||
# Errors:
|
||||
# - if the given @name doesn't exist
|
||||
|
||||
@@ -177,7 +177,7 @@
|
||||
#
|
||||
# Return information about the PCI bus topology of the guest.
|
||||
#
|
||||
# Returns: a list of @PciInfo for each PCI bus. Each bus is
|
||||
# Returns: a list of info for each PCI bus. Each bus is
|
||||
# represented by a json-object, which has a key with a json-array
|
||||
# of all PCI devices attached to it. Each device is represented
|
||||
# by a json-object.
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
#
|
||||
# @typename: the type name of a device
|
||||
#
|
||||
# Returns: a list of ObjectPropertyInfo describing a devices
|
||||
# properties
|
||||
# Returns: a list describing a devices properties
|
||||
#
|
||||
# .. note:: Objects can create properties at runtime, for example to
|
||||
# describe links between different devices and/or objects. These
|
||||
|
||||
@@ -55,8 +55,7 @@
|
||||
# @path: the path within the object model. See @qom-get for a
|
||||
# description of this parameter.
|
||||
#
|
||||
# Returns: a list of @ObjectPropertyInfo that describe the properties
|
||||
# of the object.
|
||||
# Returns: a list that describe the properties of the object.
|
||||
#
|
||||
# Since: 1.2
|
||||
#
|
||||
@@ -178,8 +177,7 @@
|
||||
#
|
||||
# @abstract: if true, include abstract types in the results
|
||||
#
|
||||
# Returns: a list of @ObjectTypeInfo or an empty list if no results
|
||||
# are found
|
||||
# Returns: a list of types, or an empty list if no results are found
|
||||
#
|
||||
# Since: 1.1
|
||||
##
|
||||
@@ -199,7 +197,7 @@
|
||||
# describe links between different devices and/or objects. These
|
||||
# properties are not included in the output of this command.
|
||||
#
|
||||
# Returns: a list of ObjectPropertyInfo describing object properties
|
||||
# Returns: a list describing object properties
|
||||
#
|
||||
# Since: 2.12
|
||||
##
|
||||
|
||||
@@ -188,7 +188,7 @@
|
||||
# The arguments are a StatsFilter and specify the provider and objects
|
||||
# to return statistics about.
|
||||
#
|
||||
# Returns: a list of StatsResult, one for each provider and object
|
||||
# Returns: a list of statistics, one for each provider and object
|
||||
# (e.g., for each vCPU).
|
||||
#
|
||||
# Since: 7.1
|
||||
|
||||
@@ -49,7 +49,7 @@
|
||||
#
|
||||
# @name: Event name pattern (case-sensitive glob).
|
||||
#
|
||||
# Returns: a list of @TraceEventInfo for the matching events
|
||||
# Returns: a list of info for the matching events
|
||||
#
|
||||
# Since: 2.2
|
||||
#
|
||||
|
||||
@@ -822,7 +822,7 @@
|
||||
#
|
||||
# Return information about each active mouse device
|
||||
#
|
||||
# Returns: a list of @MouseInfo for each device
|
||||
# Returns: a list of info for each device
|
||||
#
|
||||
# Since: 0.14
|
||||
#
|
||||
|
||||
@@ -201,7 +201,7 @@
|
||||
#
|
||||
# @unstable: This command is meant for debugging.
|
||||
#
|
||||
# Returns: VirtioStatus of the virtio device
|
||||
# Returns: Status of the virtio device
|
||||
#
|
||||
# Since: 7.2
|
||||
#
|
||||
@@ -565,7 +565,7 @@
|
||||
#
|
||||
# @unstable: This command is meant for debugging.
|
||||
#
|
||||
# Returns: VirtQueueStatus of the VirtQueue
|
||||
# Returns: Status of the queue
|
||||
#
|
||||
# .. note:: last_avail_idx will not be displayed in the case where the
|
||||
# selected VirtIODevice has a running vhost device and the
|
||||
@@ -700,7 +700,7 @@
|
||||
#
|
||||
# @unstable: This command is meant for debugging.
|
||||
#
|
||||
# Returns: VirtVhostQueueStatus of the vhost_virtqueue
|
||||
# Returns: Status of the vhost_virtqueue
|
||||
#
|
||||
# Since: 7.2
|
||||
#
|
||||
|
||||
Reference in New Issue
Block a user