Displaying 6 results from an estimated 6 matches for "virnodedeviceptr".
2015 Mar 26
1
virConnectListAllNodeDevices requires number of devices to be known
Hi,
virConnectListAllNodeDevices() takes a virNodeDevicePtr **devices. So I
need to create an array of virNodeDevicePtr. For that I need to know size /
Number of devices. What is the function for that ?
Thank You.
2015 Mar 27
1
Channel Device virConnectListAllNodeDevices
...e='channel2'/>
<address type='virtio-serial' controller='0' bus='0' port='3'/>
</channel>
I am expecting virConnectListAllNodeDevices to have the device in its
output. But I don't see it there. Is it the right function 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) <...
2020 Mar 18
2
pointer to "spice" device by virNodeDeviceLookupByName
Is possible to get a pointer to «spice» by virNodeDeviceLookupByName API?
What «name» I should use for?
Thanks a lot!
--
Андрей Фокин
2017 Jul 04
0
node device lifecycle callback can't resive event
...but there is nothing happen. The callback was not called.
Could you tell me Why? And what dose node device mean?
I want to auto-hotplug usb devices by using libvirt.
Bellow the call of libvirt:
// node device lifecycle callback function
void nodeDeviceEventLifecycleCallback(virConnectPtr conn, virNodeDevicePtr dev, int event,
int detail, void * opaque)
{
printf("event = %d, detail= %d\n", event, detail);
}
// registe node device lifecycle event
int registeNodeDevEvent()
{
int ret = virEventRegisterDefaultImpl();
if (ret) { return -1;}
ret = virConnectNodeDevi...
2020 Mar 18
0
Re: pointer to "spice" device by virNodeDeviceLookupByName
On Wed, Mar 18, 2020 at 01:10:41PM +0300, Андрей Фокин wrote:
>
> Is possible to get a pointer to «spice» by virNodeDeviceLookupByName API?
> What «name» I should use for?
The virNodeDevicePtr APIs are for getting information about physical
devices on a host.
spice is not a device, it is a remote framebuffer protocol used by QEMU
So the question doesn't really make any sense.
Regards,
Daniel
--
|: https://berrange.com -o- https://www.flickr.com/photos/dberrange :|
|: htt...
2020 Mar 18
2
Re[2]: pointer to "spice" device by virNodeDeviceLookupByName
...gt;Среда, 18 марта 2020, 13:21 +03:00 от Daniel P. Berrangé <berrange@redhat.com>:
>
>On Wed, Mar 18, 2020 at 01:10:41PM +0300, Андрей Фокин wrote:
>>
>> Is possible to get a pointer to «spice» by virNodeDeviceLookupByName API?
>> What «name» I should use for?
>The virNodeDevicePtr APIs are for getting information about physical
>devices on a host.
>
>spice is not a device, it is a remote framebuffer protocol used by QEMU
>
>So the question doesn't really make any sense.
>
>Regards,
>Daniel
>--
>|: https://berrange.com -o- https://www.flick...