From mboxrd@z Thu Jan 1 00:00:00 1970 From: Greg KH Date: Mon, 18 Jun 2012 18:23:13 +0000 Subject: Re: Getting Hot Plug/Unplug Notification Message-Id: <20120618182313.GA11591@kroah.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-hotplug@vger.kernel.org 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