Re: Linux Hotplug Question

Greg KH <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Fri, Nov 02, 2007 at 03:49:31PM +0000, Navin Anand 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.

So your driver is working fine, but your userspace program is not
handling the device removal?

Do you have a pointer to the source for your driver?

thanks,

greg k-h

-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.