blob: c5c6fd441427a14a0a826d2e28b09ec8784b172b [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_VM_SOCKETS_H
20#define _UAPI_VM_SOCKETS_H
21#include <linux/socket.h>
22#define SO_VM_SOCKETS_BUFFER_SIZE 0
23/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
24#define SO_VM_SOCKETS_BUFFER_MIN_SIZE 1
25#define SO_VM_SOCKETS_BUFFER_MAX_SIZE 2
26#define SO_VM_SOCKETS_PEER_HOST_VM_ID 3
27#define SO_VM_SOCKETS_TRUSTED 5
28/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
29#define SO_VM_SOCKETS_CONNECT_TIMEOUT 6
30#define SO_VM_SOCKETS_NONBLOCK_TXRX 7
Tao Baod7db5942015-01-28 10:07:51 -080031#define VMADDR_CID_ANY - 1U
32#define VMADDR_PORT_ANY - 1U
Ben Cheng655a7c02013-10-16 16:09:24 -070033/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
34#define VMADDR_CID_HYPERVISOR 0
35#define VMADDR_CID_RESERVED 1
36#define VMADDR_CID_HOST 2
Tao Baod7db5942015-01-28 10:07:51 -080037#define VM_SOCKETS_INVALID_VERSION - 1U
Ben Cheng655a7c02013-10-16 16:09:24 -070038/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
39#define VM_SOCKETS_VERSION_EPOCH(_v) (((_v) & 0xFF000000) >> 24)
40#define VM_SOCKETS_VERSION_MAJOR(_v) (((_v) & 0x00FF0000) >> 16)
41#define VM_SOCKETS_VERSION_MINOR(_v) (((_v) & 0x0000FFFF))
42struct sockaddr_vm {
43/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080044 __kernel_sa_family_t svm_family;
45 unsigned short svm_reserved1;
46 unsigned int svm_port;
47 unsigned int svm_cid;
Ben Cheng655a7c02013-10-16 16:09:24 -070048/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */
Tao Baod7db5942015-01-28 10:07:51 -080049 unsigned char svm_zero[sizeof(struct sockaddr) - sizeof(sa_family_t) - sizeof(unsigned short) - sizeof(unsigned int) - sizeof(unsigned int)];
Ben Cheng655a7c02013-10-16 16:09:24 -070050};
51#define IOCTL_VM_SOCKETS_GET_LOCAL_CID _IO(7, 0xb9)
52#endif
Tao Baod7db5942015-01-28 10:07:51 -080053/* WARNING: DO NOT EDIT, AUTO-GENERATED CODE - SEE TOP FOR INSTRUCTIONS */