xref: /aosp_15_r20/bionic/libc/kernel/uapi/linux/dm-log-userspace.h (revision 8d67ca893c1523eb926b9080dbe4e2ffd2a27ba1)
1 /*
2  * This file is auto-generated. Modifications will be lost.
3  *
4  * See https://android.googlesource.com/platform/bionic/+/master/libc/kernel/
5  * for more information.
6  */
7 #ifndef __DM_LOG_USERSPACE_H__
8 #define __DM_LOG_USERSPACE_H__
9 #include <linux/types.h>
10 #include <linux/dm-ioctl.h>
11 #define DM_ULOG_CTR 1
12 #define DM_ULOG_DTR 2
13 #define DM_ULOG_PRESUSPEND 3
14 #define DM_ULOG_POSTSUSPEND 4
15 #define DM_ULOG_RESUME 5
16 #define DM_ULOG_GET_REGION_SIZE 6
17 #define DM_ULOG_IS_CLEAN 7
18 #define DM_ULOG_IN_SYNC 8
19 #define DM_ULOG_FLUSH 9
20 #define DM_ULOG_MARK_REGION 10
21 #define DM_ULOG_CLEAR_REGION 11
22 #define DM_ULOG_GET_RESYNC_WORK 12
23 #define DM_ULOG_SET_REGION_SYNC 13
24 #define DM_ULOG_GET_SYNC_COUNT 14
25 #define DM_ULOG_STATUS_INFO 15
26 #define DM_ULOG_STATUS_TABLE 16
27 #define DM_ULOG_IS_REMOTE_RECOVERING 17
28 #define DM_ULOG_REQUEST_MASK 0xFF
29 #define DM_ULOG_REQUEST_TYPE(request_type) (DM_ULOG_REQUEST_MASK & (request_type))
30 #define DM_ULOG_REQUEST_VERSION 3
31 struct dm_ulog_request {
32   __u64 luid;
33   char uuid[DM_UUID_LEN];
34   char padding[3];
35   __u32 version;
36   __s32 error;
37   __u32 seq;
38   __u32 request_type;
39   __u32 data_size;
40   char data[];
41 };
42 #endif
43