This commit was manufactured by cvs2svn to create branch 'vserver'.
[linux-2.6.git] / arch / um / include / aio.h
1 /* 
2  * Copyright (C) 2004 Jeff Dike (jdike@karaya.com)
3  * Licensed under the GPL
4  */
5
6 #ifndef AIO_H__
7 #define AIO_H__
8
9 enum aio_type { AIO_READ, AIO_WRITE, AIO_MMAP };
10
11 struct aio_thread_reply {
12         void *data;
13         int err;
14 };
15
16 struct aio_context {
17         int reply_fd;
18 };
19
20 #define INIT_AIO_CONTEXT { .reply_fd    = -1 }
21
22 extern int submit_aio(enum aio_type type, int fd, char *buf, int len, 
23                       unsigned long long offset, int reply_fd, void *data);
24
25 #endif
26
27 /*
28  * Overrides for Emacs so that we follow Linus's tabbing style.
29  * Emacs will notice this stuff at the end of the file and automatically
30  * adjust the settings for this buffer only.  This must remain at the end
31  * of the file.
32  * ---------------------------------------------------------------------------
33  * Local variables:
34  * c-file-style: "linux"
35  * End:
36  */