blob: adf3a7f97996c1bd03d02bce2af09eee1cae2a69 [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 _UAPI__CONNECTOR_H
20#define _UAPI__CONNECTOR_H
21#include <linux/types.h>
22#define CN_IDX_PROC 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -070023#define CN_VAL_PROC 0x1
24#define CN_IDX_CIFS 0x2
25#define CN_VAL_CIFS 0x1
26#define CN_W1_IDX 0x3
Ben Cheng655a7c02013-10-16 16:09:24 -070027#define CN_W1_VAL 0x1
28#define CN_IDX_V86D 0x4
29#define CN_VAL_V86D_UVESAFB 0x1
30#define CN_IDX_BB 0x5
Ben Cheng655a7c02013-10-16 16:09:24 -070031#define CN_DST_IDX 0x6
32#define CN_DST_VAL 0x1
33#define CN_IDX_DM 0x7
34#define CN_VAL_DM_USERSPACE_LOG 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -070035#define CN_IDX_DRBD 0x8
36#define CN_VAL_DRBD 0x1
37#define CN_KVP_IDX 0x9
38#define CN_KVP_VAL 0x1
Ben Cheng655a7c02013-10-16 16:09:24 -070039#define CN_VSS_IDX 0xA
40#define CN_VSS_VAL 0x1
41#define CN_NETLINK_USERS 11
42#define CONNECTOR_MAX_MSG_SIZE 16384
Ben Cheng655a7c02013-10-16 16:09:24 -070043struct cb_id {
Tao Baod7db5942015-01-28 10:07:51 -080044 __u32 idx;
45 __u32 val;
Ben Cheng655a7c02013-10-16 16:09:24 -070046};
Ben Cheng655a7c02013-10-16 16:09:24 -070047struct cn_msg {
Tao Baod7db5942015-01-28 10:07:51 -080048 struct cb_id id;
49 __u32 seq;
50 __u32 ack;
Tao Baod7db5942015-01-28 10:07:51 -080051 __u16 len;
52 __u16 flags;
53 __u8 data[0];
Ben Cheng655a7c02013-10-16 16:09:24 -070054};
Ben Cheng655a7c02013-10-16 16:09:24 -070055#endif