Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
e91be41e
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,发现更多精彩内容 >>
提交
e91be41e
编写于
2月 29, 2012
作者:
L
Laine Stump
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
util: wrap virnetlink.c to 80 columns
上级
47d05109
变更
1
隐藏空白更改
内联
并排
Showing
1 changed file
with
17 addition
and
11 deletion
+17
-11
src/util/virnetlink.c
src/util/virnetlink.c
+17
-11
未找到文件。
src/util/virnetlink.c
浏览文件 @
e91be41e
...
...
@@ -270,7 +270,7 @@ virNetlinkEventCallback(int watch,
* stop the monitor to receive netlink messages for libvirtd.
* This removes the netlink socket fd from the event handler.
*
*
r
eturns -1 if the monitor cannot be unregistered, 0 upon success
*
R
eturns -1 if the monitor cannot be unregistered, 0 upon success
*/
int
virNetlinkEventServiceStop
(
void
)
...
...
@@ -305,9 +305,9 @@ virNetlinkEventServiceStop(void)
/**
* virNetlinkEventServiceIsRunning:
*
*
r
eturns if the netlink event service is running.
*
R
eturns if the netlink event service is running.
*
*
r
eturns 'true' if the service is running, 'false' if stopped.
*
R
eturns 'true' if the service is running, 'false' if stopped.
*/
bool
virNetlinkEventServiceIsRunning
(
void
)
...
...
@@ -321,7 +321,7 @@ virNetlinkEventServiceIsRunning(void)
* start a monitor to receive netlink messages for libvirtd.
* This registers a netlink socket with the event interface.
*
*
r
eturns -1 if the monitor cannot be registered, 0 upon success
*
R
eturns -1 if the monitor cannot be registered, 0 upon success
*/
int
virNetlinkEventServiceStart
(
void
)
...
...
@@ -410,13 +410,15 @@ error:
* @handleCB: callback to invoke when an event occurs
* @removeCB: callback to invoke when removing a client
* @opaque: user data to pass to callback
* @macaddr: macaddr to store with the data. Used to identify callers. May be null.
* @macaddr: macaddr to store with the data. Used to identify callers.
* May be null.
*
* register a callback for handling of netlink messages. The
* registered function receives the entire netlink message and
* may choose to act upon it.
*
* returns -1 if the file handle cannot be registered, number of monitor upon success
* Returns -1 if the file handle cannot be registered, number of
* monitor upon success.
*/
int
virNetlinkEventAddClient
(
virNetlinkEventHandleCallback
handleCB
,
...
...
@@ -481,7 +483,7 @@ error:
* The handler function referenced will no longer receive netlink messages.
* Either watch or macaddr may be used, the other should be null.
*
*
r
eturns -1 if the file handle was not registered, 0 upon success
*
R
eturns -1 if the file handle was not registered, 0 upon success
*/
int
virNetlinkEventRemoveClient
(
int
watch
,
const
unsigned
char
*
macaddr
)
...
...
@@ -538,7 +540,8 @@ int virNetlinkCommand(struct nl_msg *nl_msg ATTRIBUTE_UNUSED,
}
/**
* stopNetlinkEventServer: stop the monitor to receive netlink messages for libvirtd
* stopNetlinkEventServer: stop the monitor to receive netlink
* messages for libvirtd
*/
int
virNetlinkEventServiceStop
(
void
)
{
...
...
@@ -551,7 +554,8 @@ int virNetlinkEventServiceStop(void)
}
/**
* startNetlinkEventServer: start a monitor to receive netlink messages for libvirtd
* startNetlinkEventServer: start a monitor to receive netlink
* messages for libvirtd
*/
int
virNetlinkEventServiceStart
(
void
)
{
...
...
@@ -564,7 +568,8 @@ int virNetlinkEventServiceStart(void)
}
/**
* virNetlinkEventServiceIsRunning: returns if the netlink event service is running.
* virNetlinkEventServiceIsRunning: returns if the netlink event
* service is running.
*/
int
virNetlinkEventServiceIsRunning
(
void
)
{
...
...
@@ -577,7 +582,8 @@ int virNetlinkEventServiceIsRunning(void)
}
/**
* virNetlinkEventAddClient: register a callback for handling of netlink messages
* virNetlinkEventAddClient: register a callback for handling of
* netlink messages
*/
int
virNetlinkEventAddClient
(
virNetlinkEventHandleCallback
cb
,
virNetlinkEventRemoveCallback
cb
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录