Skip to content

USB hotplug connection functionality  #103

@dominikfehr

Description

@dominikfehr

Due to several possible problems while detaching the kernel driver from a device, in some cases it is useful to use the usb hotplug event to actually wait for the device to be connected and directly opening it to prevent the system to take over before.

Implementation line might be:

device_handle = self.proxied_device.open(device, detach=True)

For reference, this way worked perfectly fine for most of my problem cases:
https://github.com/Fehr-GmbH/blackleak/blob/master/main.c#L40

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions