blob: 687c4357e95c6a0eb74b4943000063e5146de15a [file] [log] [blame]
Ben Cheng655a7c02013-10-16 16:09:24 -07001/****************************************************************************
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 <linux/types.h>
22#include <asm/byteorder.h>
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24typedef __kernel_ulong_t aio_context_t;
25enum {
Tao Baod7db5942015-01-28 10:07:51 -080026 IOCB_CMD_PREAD = 0,
27 IOCB_CMD_PWRITE = 1,
Ben Cheng655a7c02013-10-16 16:09:24 -070028/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080029 IOCB_CMD_FSYNC = 2,
30 IOCB_CMD_FDSYNC = 3,
31 IOCB_CMD_NOOP = 6,
32 IOCB_CMD_PREADV = 7,
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080034 IOCB_CMD_PWRITEV = 8,
Ben Cheng655a7c02013-10-16 16:09:24 -070035};
36#define IOCB_FLAG_RESFD (1 << 0)
37struct io_event {
38/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080039 __u64 data;
40 __u64 obj;
41 __s64 res;
42 __s64 res2;
Ben Cheng655a7c02013-10-16 16:09:24 -070043/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44};
Elliott Hughes8cb52b02013-11-21 13:43:23 -080045#if defined(__BYTE_ORDER) ? __BYTE_ORDER == __LITTLE_ENDIAN : defined(__LITTLE_ENDIAN)
Ben Cheng655a7c02013-10-16 16:09:24 -070046#define PADDED(x,y) x, y
Tao Baod7db5942015-01-28 10:07:51 -080047#elif defined(__BYTE_ORDER)?__BYTE_ORDER==__BIG_ENDIAN:defined(__BIG_ENDIAN)
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49#define PADDED(x,y) y, x
50#else
Tao Baod7db5942015-01-28 10:07:51 -080051#error edit for your odd byteorder .
Ben Cheng655a7c02013-10-16 16:09:24 -070052#endif
53/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54struct iocb {
Tao Baod7db5942015-01-28 10:07:51 -080055 __u64 aio_data;
56 __u32 PADDED(aio_key, aio_reserved1);
57 __u16 aio_lio_opcode;
Ben Cheng655a7c02013-10-16 16:09:24 -070058/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080059 __s16 aio_reqprio;
60 __u32 aio_fildes;
61 __u64 aio_buf;
62 __u64 aio_nbytes;
Ben Cheng655a7c02013-10-16 16:09:24 -070063/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080064 __s64 aio_offset;
65 __u64 aio_reserved2;
66 __u32 aio_flags;
67 __u32 aio_resfd;
Ben Cheng655a7c02013-10-16 16:09:24 -070068/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
69};
70#undef IFBIG
71#undef IFLITTLE
72#endif
73/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */