I am working with an embedded platform. Typical software in this devices are Linux 2.6 + Busybox, so resources are limited.
I need to run an user space application every time a USB device is connected. I need to pass as parameter to this user space app the DeviceID and ProductID.
I don't really know which strategy should I follow to achieve this:
- Writing a linux kernel module.
- Doing it from inside the kernel (usb drivers) i'm currently doing this, but i dont think its the best way to do it
- A user space app that 'polls' for usb connected devices.?
Which one should be the best way?
Thanks for your answer!