[openib-general] What is the correct method of determining the number of ports

Hal Rosenstock halr at voltaire.com
Mon Jun 6 13:00:17 PDT 2005


On Mon, 2005-06-06 at 01:07, Shirley Ma wrote: 
> I was thinking to use ibv_get_devices() to get the list of device
> names, then use umad_get_ca() to get ca info. (it actually gets the
> info from directory /sys/class/infiniband.) Which might not what you
> want.

umad was done long before uverbs was available and using
/sys/class/infiniband was the only way to obtain the needed information
in userspace. If the community thinks uverbs should be used to obtain
this information, this can be converted over. Patches accepted :-)

-- Hal




More information about the general mailing list