2 * Skeleton for a sample external io engine
4 * Should be compiled with:
6 * gcc -Wall -O2 -g -shared -rdynamic -fPIC -o engine.o engine.c
19 * The core of the module is identical to the ones included with fio,
20 * read those. You cannot use register_ioengine() and unregister_ioengine()
21 * for external modules, they should be gotten through dlsym()
25 * Note that the structure is exported, so that fio can get it via
26 * dlsym(..., "ioengine");
28 struct ioengine_ops ioengine = {
29 .name = "engine_name",
30 .version = FIO_IOOPS_VERSION,
31 .init = fio_skeleton_init,
32 .prep = fio_skeleton_prep,
33 .queue = fio_skeleton_queue,
34 .getevents = fio_skeleton_getevents,
35 .event = fio_skeleton_event,
36 .cleanup = fio_skeleton_cleanup,