• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /****************************************************************************
2  ****************************************************************************
3  ***
4  ***   This header was automatically generated from a Linux kernel header
5  ***   of the same name, to make information necessary for userspace to
6  ***   call into the kernel available to libc.  It contains only constants,
7  ***   structures, and macros generated from the original header, and thus,
8  ***   contains no copyrightable information.
9  ***
10  ***   To edit the content of this header, modify the corresponding
11  ***   source file (e.g. under external/kernel-headers/original/) then
12  ***   run bionic/libc/kernel/tools/update_all.py
13  ***
14  ***   Any manual change here will be lost the next time this script will
15  ***   be run. You've been warned!
16  ***
17  ****************************************************************************
18  ****************************************************************************/
19 #ifndef __LINUX__AIO_ABI_H
20 #define __LINUX__AIO_ABI_H
21 #include <asm/byteorder.h>
22 typedef unsigned long aio_context_t;
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 enum {
25  IOCB_CMD_PREAD = 0,
26  IOCB_CMD_PWRITE = 1,
27  IOCB_CMD_FSYNC = 2,
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29  IOCB_CMD_FDSYNC = 3,
30  IOCB_CMD_NOOP = 6,
31 };
32 struct io_event {
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34  __u64 data;
35  __u64 obj;
36  __s64 res;
37  __s64 res2;
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 };
40 #ifdef __LITTLE_ENDIAN
41 #define PADDED(x,y) x, y
42 #elif defined(__BIG_ENDIAN)
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define PADDED(x,y) y, x
45 #else
46 #error edit for your odd byteorder.
47 #endif
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49 struct iocb {
50  __u64 aio_data;
51  __u32 PADDED(aio_key, aio_reserved1);
52  __u16 aio_lio_opcode;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54  __s16 aio_reqprio;
55  __u32 aio_fildes;
56  __u64 aio_buf;
57  __u64 aio_nbytes;
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59  __s64 aio_offset;
60  __u64 aio_reserved2;
61  __u64 aio_reserved3;
62 };
63 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
64 #undef IFBIG
65 #undef IFLITTLE
66 #endif
67