[Spice-devel] [spice-devel][usbredir] why do usbredirhost_open trigger udev/kernel events ?

Hans de Goede hdegoede at redhat.com
Thu Apr 11 03:53:45 PDT 2013


Hi,

On 04/11/2013 05:41 AM, zhou link wrote:
> these days,  i run the usbredirserver,  which is a test program of usbredir-0.6.
>
> udevadmin monitor  will receive udev/kernel events when usbredirserver calls usbredirhost_open
>
> it seems the usb device removes or adds,  how to block the events?

When usbredir opens the device, the kernel driver for the device gets detached
and replaced with the generic usbfs driver for userspace access to usb devices,
and on closing the device the reverse happens.

Driver attach / detach generates udev events, there is nothing usbredir can
do to avoid this.

If you've specific udev rules which are behaving undesirable with this, the
only thing you can do is fix the rules.

Regards,

Hans


More information about the Spice-devel mailing list