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);

 

posted @ 2017-12-13 17:27  huststephen  阅读(391)  评论(0)    收藏  举报