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 __DM_LOG_USERSPACE_H__
20 #define __DM_LOG_USERSPACE_H__
21 #include <linux/dm-ioctl.h>
22 #define DM_ULOG_CTR 1
23 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24 #define DM_ULOG_DTR 2
25 #define DM_ULOG_PRESUSPEND 3
26 #define DM_ULOG_POSTSUSPEND 4
27 #define DM_ULOG_RESUME 5
28 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29 #define DM_ULOG_GET_REGION_SIZE 6
30 #define DM_ULOG_IS_CLEAN 7
31 #define DM_ULOG_IN_SYNC 8
32 #define DM_ULOG_FLUSH 9
33 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34 #define DM_ULOG_MARK_REGION 10
35 #define DM_ULOG_CLEAR_REGION 11
36 #define DM_ULOG_GET_RESYNC_WORK 12
37 #define DM_ULOG_SET_REGION_SYNC 13
38 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39 #define DM_ULOG_GET_SYNC_COUNT 14
40 #define DM_ULOG_STATUS_INFO 15
41 #define DM_ULOG_STATUS_TABLE 16
42 #define DM_ULOG_IS_REMOTE_RECOVERING 17
43 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
44 #define DM_ULOG_REQUEST_MASK 0xFF
45 #define DM_ULOG_REQUEST_TYPE(request_type) (DM_ULOG_REQUEST_MASK & (request_type))
46 #define DM_ULOG_REQUEST_VERSION 3
47 struct dm_ulog_request {
48 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
49   uint64_t luid;
50   char uuid[DM_UUID_LEN];
51   char padding[3];
52   uint32_t version;
53 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
54   int32_t error;
55   uint32_t seq;
56   uint32_t request_type;
57   uint32_t data_size;
58 /* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
59   char data[0];
60 };
61 #endif
62