diff options
Diffstat (limited to 'include/linux/aio_abi.h')
-rw-r--r-- | include/linux/aio_abi.h | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/include/linux/aio_abi.h b/include/linux/aio_abi.h index e3ca0a485cc6..9e0172931315 100644 --- a/include/linux/aio_abi.h +++ b/include/linux/aio_abi.h | |||
@@ -45,6 +45,14 @@ enum { | |||
45 | IOCB_CMD_PWRITEV = 8, | 45 | IOCB_CMD_PWRITEV = 8, |
46 | }; | 46 | }; |
47 | 47 | ||
48 | /* | ||
49 | * Valid flags for the "aio_flags" member of the "struct iocb". | ||
50 | * | ||
51 | * IOCB_FLAG_RESFD - Set if the "aio_resfd" member of the "struct iocb" | ||
52 | * is valid. | ||
53 | */ | ||
54 | #define IOCB_FLAG_RESFD (1 << 0) | ||
55 | |||
48 | /* read() from /dev/aio returns these structures. */ | 56 | /* read() from /dev/aio returns these structures. */ |
49 | struct io_event { | 57 | struct io_event { |
50 | __u64 data; /* the data field from the iocb */ | 58 | __u64 data; /* the data field from the iocb */ |
@@ -84,7 +92,15 @@ struct iocb { | |||
84 | 92 | ||
85 | /* extra parameters */ | 93 | /* extra parameters */ |
86 | __u64 aio_reserved2; /* TODO: use this for a (struct sigevent *) */ | 94 | __u64 aio_reserved2; /* TODO: use this for a (struct sigevent *) */ |
87 | __u64 aio_reserved3; | 95 | |
96 | /* flags for the "struct iocb" */ | ||
97 | __u32 aio_flags; | ||
98 | |||
99 | /* | ||
100 | * if the IOCB_FLAG_RESFD flag of "aio_flags" is set, this is an | ||
101 | * eventfd to signal AIO readiness to | ||
102 | */ | ||
103 | __u32 aio_resfd; | ||
88 | }; /* 64 bytes */ | 104 | }; /* 64 bytes */ |
89 | 105 | ||
90 | #undef IFBIG | 106 | #undef IFBIG |