blob: 22fee6fdc8a3f960a2a590d1956accff81a1bad3 [file] [log] [blame]
Elliott Hughes180edef2023-11-02 00:08:05 +00001/*
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 */
Ben Cheng655a7c02013-10-16 16:09:24 -07007#ifndef __DM_LOG_USERSPACE_H__
8#define __DM_LOG_USERSPACE_H__
Christopher Ferris48af7cb2017-02-21 12:35:09 -08009#include <linux/types.h>
Ben Cheng655a7c02013-10-16 16:09:24 -070010#include <linux/dm-ioctl.h>
Christopher Ferris48af7cb2017-02-21 12:35:09 -080011#define DM_ULOG_CTR 1
Ben Cheng655a7c02013-10-16 16:09:24 -070012#define DM_ULOG_DTR 2
13#define DM_ULOG_PRESUSPEND 3
14#define DM_ULOG_POSTSUSPEND 4
Christopher Ferris48af7cb2017-02-21 12:35:09 -080015#define DM_ULOG_RESUME 5
Ben Cheng655a7c02013-10-16 16:09:24 -070016#define DM_ULOG_GET_REGION_SIZE 6
17#define DM_ULOG_IS_CLEAN 7
18#define DM_ULOG_IN_SYNC 8
Christopher Ferris48af7cb2017-02-21 12:35:09 -080019#define DM_ULOG_FLUSH 9
Ben Cheng655a7c02013-10-16 16:09:24 -070020#define DM_ULOG_MARK_REGION 10
21#define DM_ULOG_CLEAR_REGION 11
22#define DM_ULOG_GET_RESYNC_WORK 12
Christopher Ferris48af7cb2017-02-21 12:35:09 -080023#define DM_ULOG_SET_REGION_SYNC 13
Ben Cheng655a7c02013-10-16 16:09:24 -070024#define DM_ULOG_GET_SYNC_COUNT 14
25#define DM_ULOG_STATUS_INFO 15
26#define DM_ULOG_STATUS_TABLE 16
Christopher Ferris48af7cb2017-02-21 12:35:09 -080027#define DM_ULOG_IS_REMOTE_RECOVERING 17
Ben Cheng655a7c02013-10-16 16:09:24 -070028#define DM_ULOG_REQUEST_MASK 0xFF
Tao Baod7db5942015-01-28 10:07:51 -080029#define DM_ULOG_REQUEST_TYPE(request_type) (DM_ULOG_REQUEST_MASK & (request_type))
Christopher Ferris38062f92014-07-09 15:33:25 -070030#define DM_ULOG_REQUEST_VERSION 3
Christopher Ferris48af7cb2017-02-21 12:35:09 -080031struct dm_ulog_request {
32 __u64 luid;
Tao Baod7db5942015-01-28 10:07:51 -080033 char uuid[DM_UUID_LEN];
34 char padding[3];
Christopher Ferris48af7cb2017-02-21 12:35:09 -080035 __u32 version;
36 __s32 error;
37 __u32 seq;
38 __u32 request_type;
Christopher Ferris48af7cb2017-02-21 12:35:09 -080039 __u32 data_size;
Christopher Ferris7447a1c2022-10-04 18:24:44 -070040 char data[];
Ben Cheng655a7c02013-10-16 16:09:24 -070041};
42#endif