Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
openeuler
libvirt
提交
90791fbf
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看板
提交
90791fbf
编写于
12月 15, 2015
作者:
A
Andrea Bolognani
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
pci: Use 'addr' instead of 'dev' for virPCIDeviceAddressPtr
The name 'dev' is more appropriate for virPCIDevicePtr.
上级
c4073657
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
6 addition
and
5 deletion
+6
-5
src/util/virpci.c
src/util/virpci.c
+4
-3
src/util/virpci.h
src/util/virpci.h
+2
-2
未找到文件。
src/util/virpci.c
浏览文件 @
90791fbf
...
...
@@ -2664,12 +2664,13 @@ virPCIGetSysfsFile(char *virPCIDeviceName, char **pci_sysfs_device_link)
}
int
virPCIDeviceAddressGetSysfsFile
(
virPCIDeviceAddressPtr
dev
,
virPCIDeviceAddressGetSysfsFile
(
virPCIDeviceAddressPtr
addr
,
char
**
pci_sysfs_device_link
)
{
if
(
virAsprintf
(
pci_sysfs_device_link
,
PCI_SYSFS
"devices/%04x:%02x:%02x.%x"
,
dev
->
domain
,
dev
->
bus
,
dev
->
slot
,
dev
->
function
)
<
0
)
PCI_SYSFS
"devices/%04x:%02x:%02x.%x"
,
addr
->
domain
,
addr
->
bus
,
addr
->
slot
,
addr
->
function
)
<
0
)
return
-
1
;
return
0
;
}
...
...
src/util/virpci.h
浏览文件 @
90791fbf
...
...
@@ -159,7 +159,7 @@ virPCIDeviceListPtr virPCIDeviceGetIOMMUGroupList(virPCIDevicePtr dev);
int
virPCIDeviceAddressGetIOMMUGroupAddresses
(
virPCIDeviceAddressPtr
devAddr
,
virPCIDeviceAddressPtr
**
iommuGroupDevices
,
size_t
*
nIommuGroupDevices
);
int
virPCIDeviceAddressGetIOMMUGroupNum
(
virPCIDeviceAddressPtr
dev
);
int
virPCIDeviceAddressGetIOMMUGroupNum
(
virPCIDeviceAddressPtr
addr
);
char
*
virPCIDeviceGetIOMMUGroupDev
(
virPCIDevicePtr
dev
);
int
virPCIDeviceIsAssignable
(
virPCIDevicePtr
dev
,
...
...
@@ -180,7 +180,7 @@ int virPCIGetVirtualFunctionIndex(const char *pf_sysfs_device_link,
const
char
*
vf_sysfs_device_link
,
int
*
vf_index
);
int
virPCIDeviceAddressGetSysfsFile
(
virPCIDeviceAddressPtr
dev
,
int
virPCIDeviceAddressGetSysfsFile
(
virPCIDeviceAddressPtr
addr
,
char
**
pci_sysfs_device_link
);
int
virPCIGetNetName
(
char
*
device_link_sysfs_path
,
char
**
netname
);
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录