Re: Linux Hotplug Question
"Navin Anand" <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
Hi all Any ideas on how to start using hotplug in user space driver. I do see a lot of information about /sbin/hotplug and creating agents, but nothing clear on the way it could be done. Any help would with links or some kind of docs would be helpful. Thanks Regards On Nov 5, 2007 1:15 PM, Navin Anand <[email protected]> wrote: > Hi Greg > Attached is the source for the user space code. At this point all I am > trying is to print out > the usb hid information. No processing yet. It works fine when I add a > device, it gets bound > and starts getting the events. When I unplug the device I begin to get > the double free corruption > and the input is not valid. It finally hangs the user space code. > > Do I have to make the /etc/hotplug scripts for this. > Any help will be appreciated. > > Thanks > Regards > > > On Nov 2, 2007 3:49 PM, Navin Anand <[email protected]> wrote: > > Hi All, > > > > I am new to development under Linux 2.6 ( 2.6.16). I have a driver > > that controls the input device like mouse and exports the USB data > > from the kernel to user space through a device that is created under > > /dev directory. I am trying to make hotplug feature available with my > > driver and having some issues. When I add the device it works fine, > > only When I unplug my device the kernel disconnects and deletes the > > /dev/myfile, while my user space code is accessing the same. > > > > I will really appreciate if you could provide some input or > > information about how to make sure that hotplug works on Linux and if > > you could let me know any links or tutorials about the same. > > > > I did try to google but not a lot of information how user space > > programs cope with hot plug. > > > > My kernel driver for I/O is based on the usb-skeleton.c. This is work > > in progress for me and I used a simple kernel driver. On the user > > space all I do is a while loop to check and read the information from > > the /dev/myfile* files. > > > > I will really appreciate your feedback and help > > Regards > > > ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/ _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel