LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software > Linux - Kernel
User Name
Password
Linux - Kernel This forum is for all discussion relating to the Linux kernel.

Notices


Closed Thread
  Search this Thread
Old 10-17-2019, 03:11 AM   #1
kimi_2019
LQ Newbie
 
Registered: Oct 2019
Posts: 4

Rep: Reputation: Disabled
How to process SCSI command in USB mass storage gadget in userspace


I was working on an embedded linux device(which has kernel version 3.10.14). My target is to communicate with this device by a windows PC via SCSI command (so that it will not request any driver on Windows PC). And in the kernel source, I found the scsi command was directly processed by the kernel driver (in function do_scsi_command in driver/usb/gadget/f_mass_storage.c), but this doesn't meet my need, I need to process the scsi command in userspace, so that I can control other H/W modules like camera, uart on this device, read/write files, etc. Is there any way to do this?
 
Old 10-17-2019, 08:00 PM   #2
berndbausch
Senior Member
 
Registered: Nov 2013
Location: Tokyo
Distribution: A few
Posts: 3,591

Rep: Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972Reputation: 972
Don't post the same question in several forums. I asked for this question to be removed.
 
  


Closed Thread


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Is there any way to handle scsi command in usb mass storage protocol in userspace kimi_2019 Linux - Embedded & Single-board computer 2 10-17-2019 08:50 PM
USB Mass Storage Gadget can't find UDC octopus12345 Linux - Embedded & Single-board computer 1 10-02-2015 10:24 AM
USB Mass Storage Gadget Driver used with PandaBoard and WD HDD flashpoint1973 Linux - Newbie 1 05-30-2013 08:21 AM
Mount userspace directory as "/dev" block device for USB Gadget API? Robert_A Programming 5 02-17-2011 03:26 AM

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

All times are GMT -5. The time now is 08:25 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration