X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=ioengine.h;h=51e559440e6903a33546ee163c83ca7ce0d14480;hp=75c2c1ad222687f928e9c46fc5103d5c859035be;hb=b9f3c7ed703f0f94476c5d9123034a45a4936517;hpb=21b8aee865f0d3960687ce6ba7385e5977f45061 diff --git a/ioengine.h b/ioengine.h index 75c2c1ad..51e55944 100644 --- a/ioengine.h +++ b/ioengine.h @@ -1,7 +1,7 @@ #ifndef FIO_IOENGINE_H #define FIO_IOENGINE_H -#define FIO_IOOPS_VERSION 12 +#define FIO_IOOPS_VERSION 13 enum { IO_U_F_FREE = 1 << 0, @@ -22,7 +22,7 @@ struct io_u { struct iocb iocb; #endif #ifdef FIO_HAVE_POSIXAIO - struct aiocb aiocb; + os_aiocb_t aiocb; #endif #ifdef FIO_HAVE_SGIO struct sg_io_hdr hdr; @@ -121,6 +121,8 @@ struct ioengine_ops { int (*open_file)(struct thread_data *, struct fio_file *); int (*close_file)(struct thread_data *, struct fio_file *); int (*get_file_size)(struct thread_data *, struct fio_file *); + int option_struct_size; + struct fio_option *options; void *data; void *dlhandle; }; @@ -130,7 +132,7 @@ enum fio_ioengine_flags { FIO_RAWIO = 1 << 1, /* some sort of direct/raw io */ FIO_DISKLESSIO = 1 << 2, /* no disk involved */ FIO_NOEXTEND = 1 << 3, /* engine can't extend file */ - FIO_NODISKUTIL = 1 << 4, /* diskutil can't handle filename */ + FIO_NODISKUTIL = 1 << 4, /* diskutil can't handle filename */ FIO_UNIDIR = 1 << 5, /* engine is uni-directional */ FIO_NOIO = 1 << 6, /* thread does only pseudo IO */ FIO_SIGTERM = 1 << 7, /* needs SIGTERM to exit */ @@ -155,8 +157,11 @@ extern int __must_check td_io_get_file_size(struct thread_data *, struct fio_fil extern struct ioengine_ops *load_ioengine(struct thread_data *, const char *); extern void register_ioengine(struct ioengine_ops *); extern void unregister_ioengine(struct ioengine_ops *); +extern void free_ioengine(struct thread_data *); extern void close_ioengine(struct thread_data *); +extern int fio_show_ioengine_help(const char *engine); + /* * io unit handling */