[PATCH] Document ->queue() in the skeleton engine
authorJens Axboe <jens.axboe@oracle.com>
Tue, 6 Feb 2007 19:17:21 +0000 (20:17 +0100)
committerJens Axboe <jens.axboe@oracle.com>
Tue, 6 Feb 2007 19:17:21 +0000 (20:17 +0100)
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
engines/skeleton_external.c

index 2c330f0c3f69e05ea4663dcd1157bbd3f233c68c..785b9a660a7fdfd2921eac125f70d1750c394fad 100644 (file)
@@ -57,6 +57,12 @@ static int fio_skeleton_cancel(struct thread_data *td, struct io_u *io_u)
  * The ->queue() hook is responsible for initiating io on the io_u
  * being passed in. If the io engine is a synchronous one, io may complete
  * before ->queue() returns. Required.
+ *
+ * The io engine must transfer in the direction noted by io_u->ddir
+ * to the buffer pointed to by io_u->xfer_buf for as many bytes as
+ * io_u->xfer_buflen. Residual data count may be set in io_u->residual
+ * for a short read/write. Should return 0 for io_u complete, < 0 for
+ * an error, and > 0 for the number of bytes transferred.
  */
 static int fio_skeleton_queue(struct thread_data *td, struct io_u *io_u)
 {