Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
4e535469
L
libvirt
项目概览
openeuler
/
libvirt
通知
3
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
L
libvirt
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4e535469
编写于
9月 09, 2011
作者:
O
Osier Yang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
qemu_api: Add comments for API virDomainQemuMonitorCommand
And fix argument @pid's type of virDomainQemuAttach.
上级
60290c84
变更
1
显示空白变更内容
内联
并排
Showing
1 changed file
with
38 addition
and
3 deletion
+38
-3
src/libvirt-qemu.c
src/libvirt-qemu.c
+38
-3
未找到文件。
src/libvirt-qemu.c
浏览文件 @
4e535469
...
...
@@ -36,6 +36,43 @@
virReportErrorHelper(VIR_FROM_DOM, error, NULL, __FUNCTION__, \
__LINE__, info)
/**
* virDomainQemuMonitorCommand:
* @domain: a domain object
* @cmd: the qemu monitor command string
* @result: a string returned by @cmd
* @flags: bitwise-or of supported virDomainQemuMonitorCommandFlags
*
* This API is QEMU specific, so will only work with hypervisor
* connections to the QEMU driver.
*
* Send an arbitrary monitor command @cmd to @domain through the
* qemu monitor. There are several requirements to safely and
* succcesfully to use this API:
*
* - It must have been started with a monitor socket using the UNIX
* domain socket protocol.
* - No other operations which are changing the domain state or
* configuration at the same time, e.g. domain saving, it might
* cause libvirtd crashed.
* - If the @cmd is intend to change domain configuration, it must
* be no or other configuration changes can have been made via
* the monitor since it started.
* - The '-name' and '-uuid' arguments should have been set (not
* mandatory, but strongly recommended)
*
* If VIR_DOMAIN_QEMU_MONITOR_COMMAND_HMP is set, the command is
* considered to be a human monitor command and libvirt will automatically
* convert it into QMP if needed. In that case the @result will also
* be converted back from QMP.
*
* If successful, @result will be filled as a string with the output
* of the @cmd. And other APIs should operate normally (provided the
* above requirements were honoured
*
* Returns 0 in case of success, -1 in case of failure
*
*/
int
virDomainQemuMonitorCommand
(
virDomainPtr
domain
,
const
char
*
cmd
,
char
**
result
,
unsigned
int
flags
)
...
...
@@ -81,8 +118,6 @@ error:
return
-
1
;
}
/**
* virDomainQemuAttach:
* @conn: pointer to a hypervisor connection
...
...
@@ -111,7 +146,7 @@ error:
*/
virDomainPtr
virDomainQemuAttach
(
virConnectPtr
conn
,
unsigned
pid
,
unsigned
int
pid
,
unsigned
int
flags
)
{
VIR_DEBUG
(
"conn=%p, pid=%u, flags=%x"
,
conn
,
pid
,
flags
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录