mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-05 00:33:55 -06:00
qmp-commands: move 'query-chardev' 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
0ed90f77e8
commit
4055aa8d40
2 changed files with 24 additions and 36 deletions
|
@ -1690,42 +1690,6 @@ named schema entities. Entities are commands, events and various
|
|||
types. See docs/qapi-code-gen.txt for information on their structure
|
||||
and intended use.
|
||||
|
||||
query-chardev
|
||||
-------------
|
||||
|
||||
Each device is represented by a json-object. The returned value is a json-array
|
||||
of all devices.
|
||||
|
||||
Each json-object contain the following:
|
||||
|
||||
- "label": device's label (json-string)
|
||||
- "filename": device's file (json-string)
|
||||
- "frontend-open": open/closed state of the frontend device attached to this
|
||||
backend (json-bool)
|
||||
|
||||
Example:
|
||||
|
||||
-> { "execute": "query-chardev" }
|
||||
<- {
|
||||
"return": [
|
||||
{
|
||||
"label": "charchannel0",
|
||||
"filename": "unix:/var/lib/libvirt/qemu/seabios.rhel6.agent,server",
|
||||
"frontend-open": false
|
||||
},
|
||||
{
|
||||
"label": "charmonitor",
|
||||
"filename": "unix:/var/lib/libvirt/qemu/seabios.rhel6.monitor,server",
|
||||
"frontend-open": true
|
||||
},
|
||||
{
|
||||
"label": "charserial0",
|
||||
"filename": "pty:/dev/pts/2",
|
||||
"frontend-open": true
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
query-chardev-backends
|
||||
-------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue