LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Distributions (http://www.linuxquestions.org/questions/linux-distributions-5/)
-   -   USB insertion notification (http://www.linuxquestions.org/questions/linux-distributions-5/usb-insertion-notification-748996/)

paldebojyoti 08-20-2009 08:19 AM

USB insertion notification
 
Hi,

How do my user space application get the notification of USB device insertion / removal from the USB core? I don't want UDEV rule to be used to get the notification.

Thanks in advance.

Regards,
Deb

MS3FGX 08-20-2009 10:09 AM

System notification is handled via D-BUS on Linux. UDEV is used to create device nodes for connected hardware, which is a separate issue entirely.

neonsignal 08-20-2009 10:30 AM

You may be able to use the 'libhal_ctx_set_device_added' to set a callback function at the hal layer (see tutorial here).

paldebojyoti 08-21-2009 06:32 AM

Hi neonsignal,

Thanks a lot, this link helps me a lot.

Regards,
Dev


All times are GMT -5. The time now is 09:31 PM.