com.ibm.net.rdma.jverbs.verbs
Class DeviceList
- java.lang.Object
-
- com.ibm.net.rdma.jverbs.verbs.DeviceList
-
public class DeviceList extends java.lang.ObjectGives detail about list of devices on a machine.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method and Description voidfreeDeviceList()Deallocate memory that is allocated during getDeviceList.DevicegetDevice(int index)Get the device at a given index.static DeviceListgetDeviceList()Gets a list of Ib devices on the machine.intgetNdevices()Get the number of devices in the list.
-
-
-
Method Detail
-
freeDeviceList
public void freeDeviceList() throws java.io.IOExceptionDeallocate 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.
-
-