mirror of
https://github.com/Motorhead1991/qemu.git
synced 2025-08-07 09:43:56 -06:00
qmp-commands: move 'chardev-add' 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
77b6681ec2
commit
2212092e11
2 changed files with 19 additions and 28 deletions
|
@ -1252,34 +1252,6 @@ Example:
|
|||
-> { "execute": "query-tpm-types" }
|
||||
<- { "return": [ "passthrough" ] }
|
||||
|
||||
chardev-add
|
||||
----------------
|
||||
|
||||
Add a chardev.
|
||||
|
||||
Arguments:
|
||||
|
||||
- "id": the chardev's ID, must be unique (json-string)
|
||||
- "backend": chardev backend type + parameters
|
||||
|
||||
Examples:
|
||||
|
||||
-> { "execute" : "chardev-add",
|
||||
"arguments" : { "id" : "foo",
|
||||
"backend" : { "type" : "null", "data" : {} } } }
|
||||
<- { "return": {} }
|
||||
|
||||
-> { "execute" : "chardev-add",
|
||||
"arguments" : { "id" : "bar",
|
||||
"backend" : { "type" : "file",
|
||||
"data" : { "out" : "/tmp/bar.log" } } } }
|
||||
<- { "return": {} }
|
||||
|
||||
-> { "execute" : "chardev-add",
|
||||
"arguments" : { "id" : "baz",
|
||||
"backend" : { "type" : "pty", "data" : {} } } }
|
||||
<- { "return": { "pty" : "/dev/pty/42" } }
|
||||
|
||||
chardev-remove
|
||||
--------------
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue