aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2016-06-23 13:35:51 +0200
committerMarkus Armbruster <armbru@redhat.com>2017-01-16 09:15:29 +0100
commit179bf59a3aeccf2350e054e24a232a1b69e9a27b (patch)
tree5804bb5ad477cd71a5954c61ee306ae012719ccb
parentde0ba66226ebdf1747759c53ac9ab0de7b9ebf58 (diff)
downloadqemu-179bf59a3aeccf2350e054e24a232a1b69e9a27b.zip
qemu-179bf59a3aeccf2350e054e24a232a1b69e9a27b.tar.gz
qemu-179bf59a3aeccf2350e054e24a232a1b69e9a27b.tar.bz2
qmp-commands: move 'getfd' doc to schema
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com> Signed-off-by: Markus Armbruster <armbru@redhat.com>
-rw-r--r--docs/qmp-commands.txt22
-rw-r--r--qapi-schema.json7
2 files changed, 7 insertions, 22 deletions
diff --git a/docs/qmp-commands.txt b/docs/qmp-commands.txt
index 2555eef..483769c 100644
--- a/docs/qmp-commands.txt
+++ b/docs/qmp-commands.txt
@@ -688,28 +688,6 @@ Arguments:
Returns: Nothing on success
If "device" does not exist or cannot be determined, DeviceNotFound
-getfd
------
-
-Receive a file descriptor via SCM rights and assign it a name.
-
-Arguments:
-
-- "fdname": file descriptor name (json-string)
-
-Example:
-
--> { "execute": "getfd", "arguments": { "fdname": "fd1" } }
-<- { "return": {} }
-
-Notes:
-
-(1) If the name specified by the "fdname" argument already exists,
- the file descriptor assigned to it will be closed and replaced
- by the received file descriptor.
-(2) The 'closefd' command can be used to explicitly close the file
- descriptor when it is no longer needed.
-
closefd
-------
diff --git a/qapi-schema.json b/qapi-schema.json
index f408463..b4dacd4 100644
--- a/qapi-schema.json
+++ b/qapi-schema.json
@@ -3993,8 +3993,15 @@
# Notes: If @fdname already exists, the file descriptor assigned to
# it will be closed and replaced by the received file
# descriptor.
+#
# The 'closefd' command can be used to explicitly close the
# file descriptor when it is no longer needed.
+#
+# Example:
+#
+# -> { "execute": "getfd", "arguments": { "fdname": "fd1" } }
+# <- { "return": {} }
+#
##
{ 'command': 'getfd', 'data': {'fdname': 'str'} }