Can I reboot a USB device within a driver's probe function?

Thierry Seegers thierry.seegers at gmail.com
Mon Sep 14 05:10:30 EDT 2020


> Then you need to fix your script, as it can be determined from the
> environment variables that are passed to it by udev.  Otherwise udev and
> scripts that trigger off of device discovery would not work very well :)

Aaaah! That's the puzzle piece I was missing! Yes, it makes sense now
and, oh lookie here the information I get as environment variables when
the script is invoked:

DEVNAME=/dev/bus/usb/002/002
DEVPATH=/devices/pci0000:00/0000:00:0c.0/usb2/2-1

I think I can work with that. :)

Thanks!



More information about the Kernelnewbies mailing list