linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: Alessio Sangalli <alesan@manoweb.com>
Cc: linux-input@vger.kernel.org
Subject: Re: Notification when a new device is added or removed
Date: Sat, 28 Feb 2009 18:39:48 -0800	[thread overview]
Message-ID: <20090228183917.ZZRA012@mailhub.coreip.homeip.net> (raw)
In-Reply-To: <49A8BEF7.9060602@manoweb.com>

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

  reply	other threads:[~2009-03-01  2:40 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-02-28  4:35 Notification when a new device is added or removed Alessio Sangalli
2009-03-01  2:39 ` Dmitry Torokhov [this message]
2009-03-01  2:58   ` Alessio Sangalli
2009-03-01 10:23     ` Dmitry Torokhov
2009-03-02 23:41       ` Alessio Sangalli
2009-03-09 12:06       ` Peter Korsgaard

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20090228183917.ZZRA012@mailhub.coreip.homeip.net \
    --to=dmitry.torokhov@gmail.com \
    --cc=alesan@manoweb.com \
    --cc=linux-input@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).