Fix documentation of how to use 'zero-copy' reads.
The function to specify the read buffers is called scsi_task_add_data_in_buffer, not scsi_task_add_data_buffer Signed-off-by: Ronnie Sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
@@ -640,8 +640,8 @@ iscsi_synchronizecache10_sync(struct iscsi_context *iscsi, int lun, int lba,
|
||||
*
|
||||
* Example:
|
||||
* task = iscsi_read10_task( ( 2 512byte blocks into two buffers)
|
||||
* scsi_task_add_data_buffer(task, first_buffer, 512
|
||||
* scsi_task_add_data_buffer(task, second_buffer, 512
|
||||
* scsi_task_add_data_in_buffer(task, first_buffer, 512
|
||||
* scsi_task_add_data_in_buffer(task, second_buffer, 512
|
||||
*
|
||||
*
|
||||
* If you use this function you can not use task->datain in the callback.
|
||||
|
||||
Reference in New Issue
Block a user