On Apr 12, 2007, at 5:05 PM, Alan Stern wrote:

> On Thu, 12 Apr 2007, Danny Budik wrote:
>
>> Is it possible to read the frame number field that the USB host
>> controller is currently sending to a usb device from a user space
>> program? I am using ioctl functions and the structures in
>> usbdevice_fs.h to set, claim and release the interface, as well as to
>> do bulk transfers.
>
> There is no direct way to do it.
>

Would it be possible to add my own constant to /usr/include/linux/ 
usbdevice_fs.h and write an underlying function that would call  
usb_get_current_frame_number()? It
looks like I can add a constant say USBDEVFS_FRAMENUM in  
usbdevice_fs.h, add new case to .../drivers/usb/core/devio.c, add a  
function called proc_framenum
that would call usb_get_current_frame_number() and return the frame  
number. Is this a reasonable and/or feasible solution?

----
Danny Budik
Research Engineer
Inductive Signature Technologies, Inc.
http://www.ist-traffic.com
(865) 673-9434




-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to