Re: Reading the frame number field

Alan Stern <[email protected]>
Newsgroups gmane.linux.usb.devel
Message-ID <[email protected]>
On Thu, 12 Apr 2007, Danny Budik wrote:

> 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?

Yes, that would work.  Subject to the restriction that the frame number 
is constantly changing so that any value you receive can quickly become 
out-of-date.

Also bear in mind that high-speed buses use microframes rather than 
frames; they increment eight times more quickly.

Alan Stern


-------------------------------------------------------------------------
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.