Hi Siddharth, On Sat, 2 Sep 2006 15:03:03 -0700 (PDT) Siddharth Choudhuri <[EMAIL PROTECTED]> wrote:
| Hi, | | I am trying to implement a kernel module that can | track read/write requests to a USB-mounted flash | device (say, mounted as FAT filesystem). | | I am unable to figure out how the read,write requests | that are in the form of [sector, size] in the VFS | layer are passed into urb structure before calling | usb_submit_urb(). My understanding is at the lowest | level a call to usb_submit_urb() is required to | perform a read/write operation. Does the mtdblock do | the conversion ? Can't you use usbmon? Take a look at: Documentation/usb/usbmon.txt | My second question is, the urb structure has a member | called transfer_buffer (to fill in data) and | transfer_buffer_length to indicate the size. How does | the driver know where (location/address) to write this | data ? It doesn't need to. The USB driver just need to allocate the memory and fill the data, the low-level USB code (ie, the host controller driver) will take care to send the data to the USB device. -- Luiz Fernando N. Capitulino ------------------------------------------------------------------------- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642 _______________________________________________ [email protected] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
