Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
f3ce4ec6
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看板
提交
f3ce4ec6
编写于
2月 07, 2013
作者:
M
Michal Privoznik
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
virsh-host.c: Switch to c99 initialization of vshCmdInfo
上级
38d52f63
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
87 addition
and
40 deletion
+87
-40
tools/virsh-host.c
tools/virsh-host.c
+87
-40
未找到文件。
tools/virsh-host.c
浏览文件 @
f3ce4ec6
...
...
@@ -43,9 +43,13 @@
* "capabilities" command
*/
static
const
vshCmdInfo
info_capabilities
[]
=
{
{
"help"
,
N_
(
"capabilities"
)},
{
"desc"
,
N_
(
"Returns capabilities of hypervisor/driver."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"capabilities"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Returns capabilities of hypervisor/driver."
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -67,10 +71,14 @@ cmdCapabilities(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "connect" command
*/
static
const
vshCmdInfo
info_connect
[]
=
{
{
"help"
,
N_
(
"(re)connect to hypervisor"
)},
{
"desc"
,
N_
(
"Connect to local hypervisor. This is built-in command after shell start up."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"(re)connect to hypervisor"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Connect to local hypervisor. This is built-in "
"command after shell start up."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_connect
[]
=
{
...
...
@@ -125,9 +133,13 @@ cmdConnect(vshControl *ctl, const vshCmd *cmd)
* "freecell" command
*/
static
const
vshCmdInfo
info_freecell
[]
=
{
{
"help"
,
N_
(
"NUMA free memory"
)},
{
"desc"
,
N_
(
"display available free memory for the NUMA cell."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"NUMA free memory"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"display available free memory for the NUMA cell."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_freecell
[]
=
{
...
...
@@ -257,9 +269,13 @@ cleanup:
* "nodeinfo" command
*/
static
const
vshCmdInfo
info_nodeinfo
[]
=
{
{
"help"
,
N_
(
"node information"
)},
{
"desc"
,
N_
(
"Returns basic information about the node."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"node information"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Returns basic information about the node."
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -287,10 +303,14 @@ cmdNodeinfo(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "nodecpumap" command
*/
static
const
vshCmdInfo
info_node_cpumap
[]
=
{
{
"help"
,
N_
(
"node cpu map"
)},
{
"desc"
,
N_
(
"Displays the node's total number of CPUs, the number of"
" online CPUs and the list of online CPUs."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"node cpu map"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Displays the node's total number of CPUs, the number of"
" online CPUs and the list of online CPUs."
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -326,9 +346,13 @@ cmdNodeCpuMap(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "nodecpustats" command
*/
static
const
vshCmdInfo
info_nodecpustats
[]
=
{
{
"help"
,
N_
(
"Prints cpu stats of the node."
)},
{
"desc"
,
N_
(
"Returns cpu stats of the node, in nanoseconds."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"Prints cpu stats of the node."
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Returns cpu stats of the node, in nanoseconds."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_node_cpustats
[]
=
{
...
...
@@ -459,9 +483,13 @@ cmdNodeCpuStats(vshControl *ctl, const vshCmd *cmd)
* "nodememstats" command
*/
static
const
vshCmdInfo
info_nodememstats
[]
=
{
{
"help"
,
N_
(
"Prints memory stats of the node."
)},
{
"desc"
,
N_
(
"Returns memory stats of the node, in kilobytes."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"Prints memory stats of the node."
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Returns memory stats of the node, in kilobytes."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_node_memstats
[]
=
{
...
...
@@ -521,10 +549,14 @@ cmdNodeMemStats(vshControl *ctl, const vshCmd *cmd)
* "nodesuspend" command
*/
static
const
vshCmdInfo
info_nodesuspend
[]
=
{
{
"help"
,
N_
(
"suspend the host node for a given time duration"
)},
{
"desc"
,
N_
(
"Suspend the host node for a given time duration "
"and attempt to resume thereafter."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"suspend the host node for a given time duration"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Suspend the host node for a given time duration "
"and attempt to resume thereafter."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_node_suspend
[]
=
{
...
...
@@ -584,10 +616,13 @@ cmdNodeSuspend(vshControl *ctl, const vshCmd *cmd)
* "sysinfo" command
*/
static
const
vshCmdInfo
info_sysinfo
[]
=
{
{
"help"
,
N_
(
"print the hypervisor sysinfo"
)},
{
"desc"
,
N_
(
"output an XML string for the hypervisor sysinfo, if available"
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"print the hypervisor sysinfo"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"output an XML string for the hypervisor sysinfo, if available"
)
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -611,9 +646,13 @@ cmdSysinfo(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "hostname" command
*/
static
const
vshCmdInfo
info_hostname
[]
=
{
{
"help"
,
N_
(
"print the hypervisor hostname"
)},
{
"desc"
,
""
},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"print the hypervisor hostname"
)
},
{.
name
=
"desc"
,
.
data
=
""
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -637,9 +676,13 @@ cmdHostname(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "uri" command
*/
static
const
vshCmdInfo
info_uri
[]
=
{
{
"help"
,
N_
(
"print the hypervisor canonical URI"
)},
{
"desc"
,
""
},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"print the hypervisor canonical URI"
)
},
{.
name
=
"desc"
,
.
data
=
""
},
{.
name
=
NULL
}
};
static
bool
...
...
@@ -663,9 +706,13 @@ cmdURI(vshControl *ctl, const vshCmd *cmd ATTRIBUTE_UNUSED)
* "version" command
*/
static
const
vshCmdInfo
info_version
[]
=
{
{
"help"
,
N_
(
"show version"
)},
{
"desc"
,
N_
(
"Display the system version information."
)},
{
NULL
,
NULL
}
{.
name
=
"help"
,
.
data
=
N_
(
"show version"
)
},
{.
name
=
"desc"
,
.
data
=
N_
(
"Display the system version information."
)
},
{.
name
=
NULL
}
};
static
const
vshCmdOptDef
opts_version
[]
=
{
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录