Displaying 1 result from an estimated 1 matches for "virnodedevicegetnam".
Did you mean:
virnodedevicegetname
2015 Mar 27
1
Channel Device virConnectListAllNodeDevices
...ction to call ?
virNodeDevicePtr* devices;
int dev_count = virConnectListAllNodeDevices(conn, &devices, 0);
std::cout << "Devices: " << dev_count << std::endl;
for(virNodeDevicePtr* device = devices; device < devices+dev_count;
++device){
std::cout << virNodeDeviceGetName(*device) << std::endl;
}
returns 66 devices but once I loop through devices I don't get any
corresponding name for the channel device.
Tried using
virConnectListAllNodeDevices(conn, &devices,
VIR_CONNECT_LIST_NODE_DEVICES_CAP_VPORTS);
returns 0 devices.
Thanks.