mirror of https://github.com/xemu-project/xemu.git
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>
This commit is contained in:
parent
de0ba66226
commit
179bf59a3a
|
@ -688,28 +688,6 @@ Arguments:
|
||||||
Returns: Nothing on success
|
Returns: Nothing on success
|
||||||
If "device" does not exist or cannot be determined, DeviceNotFound
|
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
|
closefd
|
||||||
-------
|
-------
|
||||||
|
|
||||||
|
|
|
@ -3993,8 +3993,15 @@
|
||||||
# Notes: If @fdname already exists, the file descriptor assigned to
|
# Notes: If @fdname already exists, the file descriptor assigned to
|
||||||
# it will be closed and replaced by the received file
|
# it will be closed and replaced by the received file
|
||||||
# descriptor.
|
# descriptor.
|
||||||
|
#
|
||||||
# The 'closefd' command can be used to explicitly close the
|
# The 'closefd' command can be used to explicitly close the
|
||||||
# file descriptor when it is no longer needed.
|
# file descriptor when it is no longer needed.
|
||||||
|
#
|
||||||
|
# Example:
|
||||||
|
#
|
||||||
|
# -> { "execute": "getfd", "arguments": { "fdname": "fd1" } }
|
||||||
|
# <- { "return": {} }
|
||||||
|
#
|
||||||
##
|
##
|
||||||
{ 'command': 'getfd', 'data': {'fdname': 'str'} }
|
{ 'command': 'getfd', 'data': {'fdname': 'str'} }
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue