-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch makes UML use host AIO support when it (and /usr/include/linux/aio_abi.h) are present. This is only the support, with no consumers - a consumer is coming in the next patch. Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
- Loading branch information
Jeff Dike
authored and
Linus Torvalds
committed
Sep 5, 2005
1 parent
30f7dab
commit 75e5584
Showing
6 changed files
with
475 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.