com.ibm.net.rdma.jverbs.verbs
Class DeviceList
- java.lang.Object
-
- com.ibm.net.rdma.jverbs.verbs.DeviceList
-
public class DeviceList extends java.lang.Object
Gives detail about list of devices on a machine.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description void
freeDeviceList()
Deallocate memory that is allocated during getDeviceList.Device
getDevice(int index)
Get the device at a given index.static DeviceList
getDeviceList()
Gets a list of Ib devices on the machine.int
getNdevices()
Get the number of devices in the list.
-
-
-
Method Detail
-
freeDeviceList
public void freeDeviceList() throws java.io.IOException
Deallocate memory that is allocated during getDeviceList.- Throws:
java.io.IOException
- If an I/O error occurs
-
getDevice
public Device getDevice(int index)
Get the device at a given index.
-
getDeviceList
public static DeviceList getDeviceList() throws java.io.IOException
Gets a list of Ib devices on the machine.- Returns:
- DeviceList list of devices on the machine
- Throws:
java.io.IOException
- If an I/O error occurs
-
getNdevices
public int getNdevices()
Get the number of devices in the list.
-
-