Skip to content

ibv_free_device_list()

Contents

0.00 avg. rating (0% score) - 0 votes
void ibv_free_device_list(struct ibv_device **list);

Description

ibv_free_device_list() frees the RDMA devices array list.
Once the array is freed, pointers to devices that were not opened with ibv_open_device() are no longer valid. Client code must open all devices, it intends to use before calling ibv_free_device_list().

Parameters

Name Direction Description
list in RDMA device array, that was returned from ibv_get_device_list(), to free

Return Values

None (this function always succeeds).

Examples

Get device list and free it:

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

count_devices.c

Share Our Posts

Share this post through social bookmarks.

  • Delicious
  • Digg
  • Newsvine
  • RSS
  • StumbleUpon
  • Technorati

Comments

Tell us what do you think.

There are no comments on this entry.

Add a Comment

This comment will be moderated; answer may be provided within 14 days.

Time limit is exhausted. Please reload CAPTCHA.