Linux Hotplug Question
"Navin Anand" <[email protected]>
| Newsgroups | gmane.linux.usb.devel |
|---|---|
| Message-ID | <[email protected]> |
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