Hi,

On Tue, Dec 24, 2002 at 12:48:57AM +0100, Oliver Neukum wrote:
> > I haven't found any way to "tell" read/write that the device was
> > disconnected without keeping the scn data until close_scanner() is
> > called. That's why I didn't include the  "owner: THIS_MODULE" in this
> > patch.
> >
> > Any ideas to do that without keeping the scn data around until the
> > final close?
> 
> You cannot.
> Either keep the descriptors around, or don't use file->private_data
> and go through the array indexed by minors always.

If I do the latter (in 2.4), how do I get the minor number? In
ioctl_scanner it's done with "scn_minor = USB_SCN_MINOR(inode);" but
how do I get the inode in read/write?

Bye,
  Henning


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to