[Stgt-devel] About the cmd execution in a SCSI device
Mon May 19 15:19:09 CEST 2008
I'm going over the code in bs_rdwr_request: the data is read/written
from/to the device using pread64/pwrite64. I understand that it treats
the device as a file and just reads/writes from/to it with some offset.
What I don't understand is if the data is copied between user & kernel
space. Eventually, it will go from tgt (user) to scsi-ml (kernel) somehow.
Another question is - where are scsi_get_in_buffer/scsi_get_out_buffer
defined? I couldn't find it anywhere and googling it didn't help.
More information about the stgt