LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Kernel (https://www.linuxquestions.org/questions/linux-kernel-70/)
-   -   How to process SCSI command in USB mass storage gadget in userspace (https://www.linuxquestions.org/questions/linux-kernel-70/how-to-process-scsi-command-in-usb-mass-storage-gadget-in-userspace-4175662667/)

kimi_2019 10-17-2019 02:11 AM

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?

berndbausch 10-17-2019 07:00 PM

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


All times are GMT -5. The time now is 04:06 PM.