From: Greg KH <gregkh@linuxfoundation.org>
To: linux-hotplug@vger.kernel.org
Subject: Re: Getting Hot Plug/Unplug Notification
Date: Mon, 18 Jun 2012 18:23:13 +0000 [thread overview]
Message-ID: <20120618182313.GA11591@kroah.com> (raw)
On Mon, Jun 18, 2012 at 11:49:32PM +0530, madhav chauhan wrote:
> Hi All,
> I want to get hot plug event in my C code whenever USB device is
> plugged in/out.
Link to libudev for this.
> How can i get VID/PID of USB device plugged out/in??
Yes.
> Can somebody help me for the same, any sample code available??
Look at the libudev examples, they should help you out.
Hope this helps,
greg k-h
next reply other threads:[~2012-06-18 18:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-18 18:23 Greg KH [this message]
2012-06-18 18:31 ` Getting Hot Plug/Unplug Notification madhav chauhan
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=20120618182313.GA11591@kroah.com \
--to=gregkh@linuxfoundation.org \
--cc=linux-hotplug@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 read-only IMAP folder(s) and NNTP newsgroup(s).