Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
cf8b828a
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看板
提交
cf8b828a
编写于
3月 25, 2015
作者:
J
Ján Tomko
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Rename virDomainIOThreadsInfoFree to virDomainIOThreadInfoFree
This function only frees the info for one thread.
上级
fa67489d
变更
7
隐藏空白更改
内联
并排
Showing
7 changed file
with
10 addition
and
10 deletion
+10
-10
daemon/remote.c
daemon/remote.c
+1
-1
include/libvirt/libvirt-domain.h
include/libvirt/libvirt-domain.h
+1
-1
src/libvirt-domain.c
src/libvirt-domain.c
+3
-3
src/libvirt_public.syms
src/libvirt_public.syms
+1
-1
src/qemu/qemu_driver.c
src/qemu/qemu_driver.c
+2
-2
src/remote/remote_driver.c
src/remote/remote_driver.c
+1
-1
tools/virsh-domain.c
tools/virsh-domain.c
+1
-1
未找到文件。
daemon/remote.c
浏览文件 @
cf8b828a
...
...
@@ -2335,7 +2335,7 @@ remoteDispatchDomainGetIOThreadsInfo(virNetServerPtr server ATTRIBUTE_UNUSED,
virObjectUnref
(
dom
);
if
(
ninfo
>=
0
)
for
(
i
=
0
;
i
<
ninfo
;
i
++
)
virDomainIOThread
s
InfoFree
(
info
[
i
]);
virDomainIOThreadInfoFree
(
info
[
i
]);
VIR_FREE
(
info
);
return
rv
;
...
...
include/libvirt/libvirt-domain.h
浏览文件 @
cf8b828a
...
...
@@ -1605,7 +1605,7 @@ struct _virDomainIOThreadInfo {
int
cpumaplen
;
/* cpumap size */
};
void
virDomainIOThread
s
InfoFree
(
virDomainIOThreadInfoPtr
info
);
void
virDomainIOThreadInfoFree
(
virDomainIOThreadInfoPtr
info
);
int
virDomainGetIOThreadsInfo
(
virDomainPtr
domain
,
virDomainIOThreadInfoPtr
**
info
,
...
...
src/libvirt-domain.c
浏览文件 @
cf8b828a
...
...
@@ -7906,7 +7906,7 @@ virDomainGetMaxVcpus(virDomainPtr domain)
*
* Returns the number of IOThreads or -1 in case of error.
* On success, the array of information is stored into @info. The caller is
* responsible for calling virDomainIOThread
s
InfoFree() on each array element,
* responsible for calling virDomainIOThreadInfoFree() on each array element,
* then calling free() on @info. On error, @info is set to NULL.
*/
int
...
...
@@ -7949,13 +7949,13 @@ virDomainGetIOThreadsInfo(virDomainPtr dom,
/**
* virDomainIOThread
s
InfoFree:
* virDomainIOThreadInfoFree:
* @info: pointer to a virDomainIOThreadInfo object
*
* Frees the memory used by @info.
*/
void
virDomainIOThread
s
InfoFree
(
virDomainIOThreadInfoPtr
info
)
virDomainIOThreadInfoFree
(
virDomainIOThreadInfoPtr
info
)
{
if
(
!
info
)
return
;
...
...
src/libvirt_public.syms
浏览文件 @
cf8b828a
...
...
@@ -697,7 +697,7 @@ LIBVIRT_1.2.12 {
LIBVIRT_1.2.14 {
global:
virDomainIOThread
s
InfoFree;
virDomainIOThreadInfoFree;
virDomainGetIOThreadsInfo;
virDomainPinIOThread;
virDomainInterfaceAddresses;
...
...
src/qemu/qemu_driver.c
浏览文件 @
cf8b828a
...
...
@@ -5788,7 +5788,7 @@ qemuDomainGetIOThreadsLive(virQEMUDriverPtr driver,
cleanup:
if (info_ret) {
for (i = 0; i < niothreads; i++)
virDomainIOThread
s
InfoFree(info_ret[i]);
virDomainIOThreadInfoFree(info_ret[i]);
VIR_FREE(info_ret);
}
if (iothreads) {
...
...
@@ -5859,7 +5859,7 @@ qemuDomainGetIOThreadsConfig(virDomainDefPtr targetDef,
cleanup:
if (info_ret) {
for (i = 0; i < targetDef->iothreads; i++)
virDomainIOThread
s
InfoFree(info_ret[i]);
virDomainIOThreadInfoFree(info_ret[i]);
VIR_FREE(info_ret);
}
virBitmapFree(bitmap);
...
...
src/remote/remote_driver.c
浏览文件 @
cf8b828a
...
...
@@ -2382,7 +2382,7 @@ remoteDomainGetIOThreadsInfo(virDomainPtr dom,
cleanup:
if
(
info_ret
)
{
for
(
i
=
0
;
i
<
ret
.
info
.
info_len
;
i
++
)
virDomainIOThread
s
InfoFree
(
info_ret
[
i
]);
virDomainIOThreadInfoFree
(
info_ret
[
i
]);
VIR_FREE
(
info_ret
);
}
xdr_free
((
xdrproc_t
)
xdr_remote_domain_get_iothreads_info_ret
,
...
...
tools/virsh-domain.c
浏览文件 @
cf8b828a
...
...
@@ -6868,7 +6868,7 @@ cmdIOThreadInfo(vshControl *ctl, const vshCmd *cmd)
ignore_value
(
vshPrintPinInfo
(
info
[
i
]
->
cpumap
,
info
[
i
]
->
cpumaplen
,
maxcpu
,
0
));
vshPrint
(
ctl
,
"
\n
"
);
virDomainIOThread
s
InfoFree
(
info
[
i
]);
virDomainIOThreadInfoFree
(
info
[
i
]);
}
VIR_FREE
(
info
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录