From 7a4b1d2640d2283ceab5e149d619891371206ded Mon Sep 17 00:00:00 2001 From: Ronnie Sahlberg Date: Fri, 22 Apr 2011 07:51:47 +1000 Subject: [PATCH] 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 --- include/iscsi.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/iscsi.h b/include/iscsi.h index 40dd5bb..1f0b938 100644 --- a/include/iscsi.h +++ b/include/iscsi.h @@ -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.