[openib-general] [PATCH] [RFC] librdmacm: expose device list to users

Andrew Friedley afriedle at open-mpi.org
Mon Jul 24 12:35:14 PDT 2006


Sean Hefty wrote:
>>What's the best way to map the ibv_context's return from
>>rdma_get_devices() to rdma_cm_id's for use with the rest of the RDMA
>>functions?
> 
> 
> Once an rdma_cm_id has been bound to a device, it will reference one of the
> devices (ibv_context) that's also return from rdma_get_devices().  I.e. the
> pointers should be the same.
> 
> Is this the information you're looking for?

Not quite - that's backwards from how I'm looking to do it.  I want to 
use rdma_get_devices() (or something similar) to see which devices are 
available, then get/create rdma_cm_id's for each of those devices, 
without having something like an IP address beforehand.

Andrew

> 
> - Sean





More information about the general mailing list