ibv_free_device_list()函数

Posted huststephen

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了ibv_free_device_list()函数相关的知识,希望对你有一定的参考价值。

void ibv_free_device_list(struct ibv_device **list);

描述

函数用来释放当前可用的RDMA设备数组。

注意

数组一旦释放,指向设备的指针将不能再由ibv_open_device()函数打开

 

参数(struct ibv_device **list)

待释放的RDMA设备数组

 

返回值

返回None

 

例子

获取设备链表,释放它

struct ibv_device **dev_list;
 
dev_list = ibv_get_device_list(NULL);
if (!dev_list)
        exit(1);
 
...
 
ibv_free_device_list(dev_list);

 

以上是关于ibv_free_device_list()函数的主要内容,如果未能解决你的问题,请参考以下文章