Re: [PATCH 1/3] usb: gadgetfs: introduce feature control mechanism

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 8 Sep 2016, Binyamin Sharet (bsharet) wrote:

> > I was thinking more like:
> > 
> > struct usb_gadgetfs_ioctl_arg {
> > 	uint16_t length;
> > 	uint8_t reserved[2];
> > 
> > 	uint8_t data[0];
> > }
> > 
> > but the principle is pretty much the same.
> > 
> > Alan Stern
> > 
> 
> Won’t the user lose the relevant information (e.g. feature
> structure) by using this model?

What feature structure?  Aren't your feature lists just vectors of 64 
bits?  They can be stored in the .data field above.

Alan Stern

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux