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:
Ronnie Sahlberg
2011-04-22 07:51:47 +10:00
parent 3a39201543
commit 7a4b1d2640

View File

@@ -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.