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