Add the rt linux 4.1.3-rt3 as base
[kvmfornfv.git] / kernel / arch / um / include / shared / aio.h
diff --git a/kernel/arch/um/include/shared/aio.h b/kernel/arch/um/include/shared/aio.h
new file mode 100644 (file)
index 0000000..423bae9
--- /dev/null
@@ -0,0 +1,28 @@
+/*
+ * Copyright (C) 2004 Jeff Dike (jdike@karaya.com)
+ * Licensed under the GPL
+ */
+
+#ifndef AIO_H__
+#define AIO_H__
+
+enum aio_type { AIO_READ, AIO_WRITE, AIO_MMAP };
+
+struct aio_thread_reply {
+       void *data;
+       int err;
+};
+
+struct aio_context {
+       int reply_fd;
+       struct aio_context *next;
+};
+
+#define INIT_AIO_CONTEXT { .reply_fd   = -1, \
+                          .next        = NULL }
+
+extern int submit_aio(enum aio_type type, int fd, char *buf, int len,
+                     unsigned long long offset, int reply_fd,
+                      struct aio_context *aio);
+
+#endif