Elliott Hughes | 180edef | 2023-11-02 00:08:05 +0000 | [diff] [blame^] | 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 | */ |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 7 | #ifndef _UAPI__CONNECTOR_H |
| 8 | #define _UAPI__CONNECTOR_H |
| 9 | #include <linux/types.h> |
| 10 | #define CN_IDX_PROC 0x1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 11 | #define CN_VAL_PROC 0x1 |
| 12 | #define CN_IDX_CIFS 0x2 |
| 13 | #define CN_VAL_CIFS 0x1 |
| 14 | #define CN_W1_IDX 0x3 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 15 | #define CN_W1_VAL 0x1 |
| 16 | #define CN_IDX_V86D 0x4 |
| 17 | #define CN_VAL_V86D_UVESAFB 0x1 |
| 18 | #define CN_IDX_BB 0x5 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 19 | #define CN_DST_IDX 0x6 |
| 20 | #define CN_DST_VAL 0x1 |
| 21 | #define CN_IDX_DM 0x7 |
| 22 | #define CN_VAL_DM_USERSPACE_LOG 0x1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 23 | #define CN_IDX_DRBD 0x8 |
| 24 | #define CN_VAL_DRBD 0x1 |
| 25 | #define CN_KVP_IDX 0x9 |
| 26 | #define CN_KVP_VAL 0x1 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 27 | #define CN_VSS_IDX 0xA |
| 28 | #define CN_VSS_VAL 0x1 |
| 29 | #define CN_NETLINK_USERS 11 |
| 30 | #define CONNECTOR_MAX_MSG_SIZE 16384 |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 31 | struct cb_id { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 32 | __u32 idx; |
| 33 | __u32 val; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 34 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 35 | struct cn_msg { |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 36 | struct cb_id id; |
| 37 | __u32 seq; |
| 38 | __u32 ack; |
Tao Bao | d7db594 | 2015-01-28 10:07:51 -0800 | [diff] [blame] | 39 | __u16 len; |
| 40 | __u16 flags; |
Christopher Ferris | 7447a1c | 2022-10-04 18:24:44 -0700 | [diff] [blame] | 41 | __u8 data[]; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 42 | }; |
Ben Cheng | 655a7c0 | 2013-10-16 16:09:24 -0700 | [diff] [blame] | 43 | #endif |