Re: /dev entry of USB device not disappearing after detach

Greg KH <[email protected]>
Newsgroups gmane.linux.hotplug.devel,gmane.linux.usb.general
Message-ID <[email protected]>
Adding linux-usb@vger...

On Fri, Feb 14, 2014 at 10:20:11AM -0800, Greg KH wrote:
> On Fri, Feb 14, 2014 at 07:35:31PM +0200, Valentina Manea wrote:
> > Hello,
> > 
> > I am working on a driver for a virtual USB host controller. When I attach a USB
> > device, everything is fine - sysfs files are created, /dev entry is
> > created, device is usable.
> > However, when I detach it, the /dev entry still remains. The sysfs
> > files are removed, as expected. Obviously, the /dev entry is no longer
> > usable, e.g. it can't be used for mounting.
> 
> What /dev entry are you referring to?
> 
> Did something have it held open while the device was still connected and
> hasn't closed it yet?

Also, the kernel is the one now responsible for managing the /dev node
creation/removal, through devtmpfs, there shouldn't be any "hotplug"
scripts involved in this process, so I doubt it's a userspace issue.

you do have CONFIG_DEVTMPFS enabled in your kernel, right?

thanks,

greg k-h
--
To unsubscribe from this list: send the line "unsubscribe linux-hotplug" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
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.