From: Vinay S. <vi...@br...> - 2006-07-06 16:05:39
|
I have read chapters 9 and 10. what I mean is how the ioctl call gets handled. Please confirm flow is right, App ioctl -> gives trap interrupt to processor, -> identifies device call registered sitting in location. -> jump to location I do not understand which device ioctl is registered so that control number of ioctl call gets transferred as frame or packet on bus. Thanks and Regards, S G Vinay Broadcom India Research Pvt. Ltd. Bangalore. > -----Original Message----- > From: Vinay Shettigere > Sent: Thursday, July 06, 2006 9:22 PM > To: 'Charles Lepple' > Cc: lib...@li... > Subject: RE: [Libusb-devel] usage of URB: >=20 > Oh I am very sorry. I did not mean explanation on variables such as bcmrequesttype all those > things. I could not understand the usage of IOCTL call happened inside usb_control_msg. > ret =3D ioctl(dev->fd, IOCTL_USB_CONTROL, &ctrl); > It is using ioctl with number IOCTL_USB_CONTROL. I did not understand usage. > In normal PCI driver, we use to register ioctl function to respond to such ioctl call. >=20 > Thanks and Regards, > S G Vinay > Broadcom India Research Pvt. Ltd. > Bangalore. >=20 >=20 > > -----Original Message----- > > From: Charles Lepple [mailto:cl...@gm...] > > Sent: Thursday, July 06, 2006 9:13 PM > > To: Vinay Shettigere > > Cc: lib...@li... > > Subject: Re: [Libusb-devel] usage of URB: > > > > On 7/6/06, Vinay Shettigere <vi...@br...> wrote: > > > Do you mean chapter 9 in USB spec 1.1. > > > > yes, and chapters 9 and 10 in the 2.0 spec are very useful as well. > > > > > > -----Original Message----- > > > > From: Charles Lepple [mailto:cl...@gm...] > > > > Sent: Thursday, July 06, 2006 9:06 PM > > > > To: Vinay Shettigere > > > > Cc: lib...@li... > > > > Subject: Re: [Libusb-devel] usage of URB: > > > > > > > > On 7/6/06, Vinay Shettigere <vi...@br...> wrote: > > > > > Hello, > > > > > > > > > > I am very new to libusb API. I see that usb_control_msg has set of > > > > > arguments which I did not understand other than forming URB inside > > > API. > > > > > I want to know brief explanation on URBs and how it is transferred > > > as > > > > > frame. > > > > > > > > Whatever USB API you end up using, you should take some time to read > > > > the USB spec (especially "chapter 9" for the generic API; not sure if > > > > it's a different chapter in the 2.0 spec) to understand the basics > > > > that the API documenters might not cover. > > > > > > > > http://www.usb.org/developers/docs/ > > > > > > > > -- > > > > - Charles Lepple > > > > > > > > > > > > > > > -- > > - Charles Lepple |