Re: Notification when a new device is added or removed

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, Feb 27, 2009 at 08:35:03PM -0800, Alessio Sangalli wrote:
> Hi, what is the easiest way to get somewhat notified when a device is
> added or removed from the system? I know /proc/bus/input/devices reports
> the devices list, can I make use of that? I am in an embedded
> environment where I prefer not having to bringup all the hotplug + udev
> infrastructure.
> 

You should be able to poll (select) /proc/bus/input/devices.

-- 
Dmitry
--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media Devel]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Linux Wireless Networking]     [Linux Omap]

  Powered by Linux