[openib-general] ibv_get_device_list() question
Robert Walsh
rjwalsh at pathscale.com
Tue Jan 2 18:27:23 PST 2007
Jeff Squyres wrote:
> Ah! That *would* be perfect, but I guess the RHEL4 kernel doesn't have
> this stuff (there's no "bus" or "local_cpus" entries in the device/
> subdir).
So it doesn't. Special. I don't see any obvious way of inferring this
either.
> Failing that, is <device_name> guaranteed to be the same across reboots,
> and/or the info returned by ibv_get_device_info() guaranteed to be in
> the same order? (I suppose that I can use ibv_get_device_name() to
> match potentially unordered info returned by ibv_get_device_info(), if
> necessary -- as long as the name is guaranteed to be the same across
> reboots)
I don't know: my suspicion is that none of this ordering or naming is
guaranteed. You probably want to do this based on GUID and not device
name. Roland probably knows for sure.
Regards,
Robert.
More information about the general
mailing list