LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-30-2012, 11:31 PM   #1
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 303

Rep: Reputation: 32
Finding SCSI command from URB


Hi,

Can we find out the SCSI commands issued to USB bulk devices from their URB (USB Request Block) ?

Any sample code or link will be useful to me.
With Thanks and Regards,
Barun
 
Old 02-01-2012, 10:18 AM   #2
lisle2011
Member
 
Registered: Mar 2011
Location: Surrey B.C. Canada (Metro Vancouver)
Distribution: Slackware 2.6.33.4-smp
Posts: 183
Blog Entries: 1

Rep: Reputation: 25
USB Monitor

This link may be a good starting point for you.

http://www.mjmwired.net/kernel/Docum...usb/usbmon.txt
 
Old 02-02-2012, 05:19 AM   #3
barunparichha
Member
 
Registered: Jun 2006
Location: Bangalore,india
Distribution: Linux(Redhat,fedora,suse,ubantu), Solaris (s8/s9/s10/nevada/open-solaris)
Posts: 303

Original Poster
Rep: Reputation: 32
usbmon is a user space wrapper layer to get usb raw data in proc filesystem.
But my requirement was to get the SCSI commands in driver space from the intercepted URBs.

Have a look into drivers/usb/gadget/file_storage.c which does similar to this.
Let me know for any doubt.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Convert urb to skbuff jamesbon Programming 1 12-01-2010 10:06 AM
USB2.0 URB and kmod ddeeks Programming 0 05-21-2009 01:33 PM
Multiple pending URB Rajkumar.R Linux - Kernel 1 07-12-2007 12:16 AM
Need scsi command to get serial number of a scsi tape romeshs Programming 1 09-04-2006 06:24 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:04 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration