What I think happensFrom my understanding this is what happens when I connect a USB device to my computer:Kernel recognizes that I plugged in a USB deviceKernel setups the very low-level things for the new device like drivers etc.Kernel sends a uevent to the udev daemon.Udev daemon uses the information sent, to populate the appropriate files in /dev.What I want to doI was thinking that maybe I could jump directly to step 3 by manually sending a uevent to udev. Since the uevent is sent via netlink and netlink is based on sockets, theoretically this should be possible since I just need to know which socket to write to. Anyone who has any idea if this can work and how?
Can I masquerade a kernel uevent?
linux kernel;udev;usb device