-
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.
yaml --- r: 7036 b: refs/heads/master c: 75e5584 h: refs/heads/master v: v3
- Loading branch information
Jeff Dike
authored and
Linus Torvalds
committed
Sep 5, 2005
1 parent
d36e0e2
commit 539ebc1
Showing
7 changed files
with
476 additions
and
16 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 |
---|---|---|
@@ -1,2 +1,2 @@ | ||
--- | ||
refs/heads/master: 30f7dabb083f8ff4ce541b5ac4e5d70cc173051a | ||
refs/heads/master: 75e5584c89d213d6089f64f22cd899fb172e4c95 |
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.