The proc_ioctl() function in devio.c which invokes the driver specific
ioctl appears to take care of copying the data structure back to user
space (on or about line 1087 of devio.c).

Allen

Mark McClelland wrote:
> 
> Allen Barnett wrote:
> 
> > +       case USBDEVFS_DRIVER_DEVINFO:
> > +               devinfo = (struct usbdevfs_driver_devinfo *)buf;
> > +               devinfo->type = S_IFCHR;
> > +               devinfo->major = USB_MAJOR;
> > +               devinfo->minor = ((struct usblp 
>*)(dev->actconfig->interface->private_data))->minor;
> > +               break;
> 
> This is probably a stupid question, but shouldn't there be a copy_from_user() and a 
>copy_to_user() in
> there somewhere? Or is that done automatically in 2.4?

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
http://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to