X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=engines%2Ffio-engine-sync.c;h=5919830edcc6cf0a4fe91e57d20fbabad6e7d4bc;hp=43f42ca2ffcace7068656a0ebd4453453af69d7b;hb=5f350952eff89948bfbf1eb6ac4d3d08a9109581;hpb=be67e2de7961e849d5ad82e8c9206377c325b7c8 diff --git a/engines/fio-engine-sync.c b/engines/fio-engine-sync.c index 43f42ca2..5919830e 100644 --- a/engines/fio-engine-sync.c +++ b/engines/fio-engine-sync.c @@ -7,8 +7,9 @@ #include #include #include -#include "fio.h" -#include "os.h" + +#include "../fio.h" +#include "../os.h" struct syncio_data { struct io_u *last_io_u; @@ -97,7 +98,7 @@ static int fio_syncio_init(struct thread_data *td) return 0; } -struct ioengine_ops ioengine = { +static struct ioengine_ops ioengine = { .name = "sync", .version = FIO_IOOPS_VERSION, .init = fio_syncio_init, @@ -108,3 +109,13 @@ struct ioengine_ops ioengine = { .cleanup = fio_syncio_cleanup, .flags = FIO_SYNCIO, }; + +static void fio_init fio_syncio_register(void) +{ + register_ioengine(&ioengine); +} + +static void fio_exit fio_syncio_unregister(void) +{ + unregister_ioengine(&ioengine); +}