X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=fio.h;h=b087f97285f0a7b7682538cc1d76c34846a3cc1e;hp=934d897f7162ec880a4d8ce34ba3cb35f9272139;hb=36167d82e5f49dee91c6d2cd426068edee90e36f;hpb=48097d5c61aa1718e6dd4b3b647ea2eb6f00fcfb diff --git a/fio.h b/fio.h index 934d897f..b087f972 100644 --- a/fio.h +++ b/fio.h @@ -129,6 +129,14 @@ struct io_u { struct list_head list; }; +/* + * io_ops->queue() return values + */ +enum { + FIO_Q_COMPLETED = 0, /* completed sync */ + FIO_Q_QUEUED = 1, /* queued, will complete async */ +}; + #define FIO_HDR_MAGIC 0xf00baaef enum { @@ -608,6 +616,7 @@ extern struct io_u *get_io_u(struct thread_data *, struct fio_file *); extern void put_io_u(struct thread_data *, struct io_u *); extern void ios_completed(struct thread_data *, struct io_completion_data *); extern void io_completed(struct thread_data *, struct io_u *, struct io_completion_data *); +extern void init_icd(struct io_completion_data *); /* * io engine entry points @@ -666,9 +675,10 @@ struct ioengine_ops { void (*cleanup)(struct thread_data *); void *data; void *dlhandle; + unsigned long priv; }; -#define FIO_IOOPS_VERSION 3 +#define FIO_IOOPS_VERSION 4 extern struct ioengine_ops *load_ioengine(struct thread_data *, const char *); extern int register_ioengine(struct ioengine_ops *);