2 * Copyright (C) 2004 Jeff Dike (jdike@karaya.com)
3 * Licensed under the GPL
9 enum aio_type { AIO_READ, AIO_WRITE, AIO_MMAP };
11 struct aio_thread_reply {
21 unsigned long long offset;
23 struct aio_context *next;
26 #define INIT_AIO(aio_type, aio_fd, aio_data, aio_len, aio_offset, \
32 .offset = aio_offset, \
33 .reply_fd = aio_reply_fd }
35 #define INIT_AIO_CONTEXT { .reply_fd = -1, \
38 extern int submit_aio(struct aio_context *aio);