How do i detect insertion/removal of external devices?

Submitted by Pramoda.M.A
on July 10, 2009 - 3:27am

Hi All,

How do i detect the insertion/removal of external devices like SDCard, USB drives etc.,
Somebody told to use "udev". I want to do my C program. Please anybody help me.

libhal

strcmp
on
July 10, 2009 - 11:29am

you could use libhal to get configuration details and events from the hal daemon. see http://hal.freedesktop.org/

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.