I'm using a Yocto image (a branch of 2.0 Jethro) on my wandboard (an ev-board 
of an iMX6 SoC) and I would like to write a C code to access the USB storage 
device via sg driver.

Since I need to access the logical blocks of the storage directly instead of 
transferring through kernel buffer, I attempted to change the 
*/proc/scsi/sg/allow_dio* flag (which is on the pseudo file system) introduced 
by the document Linux Version 3 SCSI Generic Driver ( 
http://sg.danny.cz/sg/s_packet.html ) , but I can't find the folder 
*/proc/scsi/sg* in the file system.

I think the *sg* module has been loaded on the running system because I can 
operate to the USB storage with the indirect method (but that's not appropriate 
to my demand).

Is there a alternate way to enable the direct IO or could make /proc/scsi/sg 
appears?

Sincerely
-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#49769): https://lists.yoctoproject.org/g/yocto/message/49769
Mute This Topic: https://lists.yoctoproject.org/mt/75185049/21656
Group Owner: [email protected]
Unsubscribe: https://lists.yoctoproject.org/g/yocto/unsub  
[[email protected]]
-=-=-=-=-=-=-=-=-=-=-=-

Reply via email to