X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Fskeleton_external.c;h=785b9a660a7fdfd2921eac125f70d1750c394fad;hp=2c330f0c3f69e05ea4663dcd1157bbd3f233c68c;hb=e2a26d2c2a75861494f6fc4046a37a71874bd59a;hpb=f8fe35e8c9e88dd681ea151251d75f6116a958b4 diff --git a/engines/skeleton_external.c b/engines/skeleton_external.c index 2c330f0c..785b9a66 100644 --- a/engines/skeleton_external.c +++ b/engines/skeleton_external.c @@ -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) {