I think you can start with udevadm application - just like that:
udevadm monitor
While you insert or remove usb device you'll be seeing messages from udev printed by this programm.
Then you can dig on your own how it's done in sources code of udevadm.
Hello, I think you can start
Hello,
I think you can start with udevadm application - just like that:
udevadm monitor
While you insert or remove usb device you'll be seeing messages from udev printed by this programm.
Then you can dig on your own how it's done in sources code of udevadm.
sdrb