Debian Codegraph @

debian/rust-vendor/linux-raw-sys/src/s390x/vm_sockets.rs

raw
1 /* automatically generated by rust-bindgen 0.72.1 */
2
3 pub type __kernel_sa_family_t = crate::ctypes::c_ushort;
4 pub type __s8 = crate::ctypes::c_schar;
5 pub type __u8 = crate::ctypes::c_uchar;
6 pub type __s16 = crate::ctypes::c_short;
7 pub type __u16 = crate::ctypes::c_ushort;
8 pub type __s32 = crate::ctypes::c_int;
9 pub type __u32 = crate::ctypes::c_uint;
10 pub type __s64 = crate::ctypes::c_longlong;
11 pub type __u64 = crate::ctypes::c_ulonglong;
12 pub type addr_t = crate::ctypes::c_ulong;
13 pub type saddr_t = crate::ctypes::c_long;
14 pub type __kernel_key_t = crate::ctypes::c_int;
15 pub type __kernel_mqd_t = crate::ctypes::c_int;
16 pub type __kernel_size_t = crate::ctypes::c_ulong;
17 pub type __kernel_ssize_t = crate::ctypes::c_long;
18 pub type __kernel_old_dev_t = crate::ctypes::c_ushort;
19 pub type __kernel_ino_t = crate::ctypes::c_uint;
20 pub type __kernel_mode_t = crate::ctypes::c_uint;
21 pub type __kernel_ipc_pid_t = crate::ctypes::c_int;
22 pub type __kernel_uid_t = crate::ctypes::c_uint;
23 pub type __kernel_gid_t = crate::ctypes::c_uint;
24 pub type __kernel_ptrdiff_t = crate::ctypes::c_long;
25 pub type __kernel_sigset_t = crate::ctypes::c_ulong;
26 pub type __kernel_long_t = crate::ctypes::c_long;
27 pub type __kernel_ulong_t = crate::ctypes::c_ulong;
28 pub type __kernel_pid_t = crate::ctypes::c_int;
29 pub type __kernel_suseconds_t = __kernel_long_t;
30 pub type __kernel_daddr_t = crate::ctypes::c_int;
31 pub type __kernel_uid32_t = crate::ctypes::c_uint;
32 pub type __kernel_gid32_t = crate::ctypes::c_uint;
33 pub type __kernel_old_uid_t = __kernel_uid_t;
34 pub type __kernel_old_gid_t = __kernel_gid_t;
35 pub type __kernel_off_t = __kernel_long_t;
36 pub type __kernel_loff_t = crate::ctypes::c_longlong;
37 pub type __kernel_old_time_t = __kernel_long_t;
38 pub type __kernel_time_t = __kernel_long_t;
39 pub type __kernel_time64_t = crate::ctypes::c_longlong;
40 pub type __kernel_clock_t = __kernel_long_t;
41 pub type __kernel_timer_t = crate::ctypes::c_int;
42 pub type __kernel_clockid_t = crate::ctypes::c_int;
43 pub type __kernel_caddr_t = *mut crate::ctypes::c_char;
44 pub type __kernel_uid16_t = crate::ctypes::c_ushort;
45 pub type __kernel_gid16_t = crate::ctypes::c_ushort;
46 pub type __s128 = i128;
47 pub type __u128 = u128;
48 pub type __le16 = __u16;
49 pub type __be16 = __u16;
50 pub type __le32 = __u32;
51 pub type __be32 = __u32;
52 pub type __le64 = __u64;
53 pub type __be64 = __u64;
54 pub type __sum16 = __u16;
55 pub type __wsum = __u32;
56 pub type __poll_t = crate::ctypes::c_uint;
57 #[repr(C)]
58 #[derive(Copy, Clone)]
59 pub struct __kernel_sockaddr_storage {
60 pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1,
61 }
62 #[repr(C)]
63 #[derive(Debug, Copy, Clone)]
64 pub struct __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1 {
65 pub ss_family: __kernel_sa_family_t,
66 pub __data: [crate::ctypes::c_char; 126usize],
67 }
68 #[repr(C)]
69 #[derive(Copy, Clone)]
70 pub struct sockaddr {
71 pub __storage: __kernel_sockaddr_storage,
72 }
73 #[repr(C, packed(4))]
74 #[derive(Copy, Clone)]
75 pub struct __vector128 {
76 pub __bindgen_anon_1: __vector128__bindgen_ty_1,
77 }
78 #[repr(C)]
79 #[derive(Debug, Copy, Clone)]
80 pub struct __vector128__bindgen_ty_1__bindgen_ty_1 {
81 pub high: __u64,
82 pub low: __u64,
83 }
84 #[repr(C)]
85 #[derive(Debug, Copy, Clone)]
86 pub struct sockaddr_vm {
87 pub svm_family: __kernel_sa_family_t,
88 pub svm_reserved1: crate::ctypes::c_ushort,
89 pub svm_port: crate::ctypes::c_uint,
90 pub svm_cid: crate::ctypes::c_uint,
91 pub svm_flags: __u8,
92 pub svm_zero: [crate::ctypes::c_uchar; 115usize],
93 }
94 pub const _K_SS_MAXSIZE: u32 = 128;
95 pub const SOCK_SNDBUF_LOCK: u32 = 1;
96 pub const SOCK_RCVBUF_LOCK: u32 = 2;
97 pub const SOCK_BUF_LOCK_MASK: u32 = 3;
98 pub const SOCK_TXREHASH_DEFAULT: u32 = 255;
99 pub const SOCK_TXREHASH_DISABLED: u32 = 0;
100 pub const SOCK_TXREHASH_ENABLED: u32 = 1;
101 pub const __BITS_PER_LONG_LONG: u32 = 64;
102 pub const SO_VM_SOCKETS_BUFFER_SIZE: u32 = 0;
103 pub const SO_VM_SOCKETS_BUFFER_MIN_SIZE: u32 = 1;
104 pub const SO_VM_SOCKETS_BUFFER_MAX_SIZE: u32 = 2;
105 pub const SO_VM_SOCKETS_PEER_HOST_VM_ID: u32 = 3;
106 pub const SO_VM_SOCKETS_TRUSTED: u32 = 5;
107 pub const SO_VM_SOCKETS_CONNECT_TIMEOUT_OLD: u32 = 6;
108 pub const SO_VM_SOCKETS_NONBLOCK_TXRX: u32 = 7;
109 pub const SO_VM_SOCKETS_CONNECT_TIMEOUT_NEW: u32 = 8;
110 pub const SO_VM_SOCKETS_CONNECT_TIMEOUT: u32 = 6;
111 pub const VMADDR_CID_ANY: i32 = -1;
112 pub const VMADDR_PORT_ANY: i32 = -1;
113 pub const VMADDR_CID_HYPERVISOR: u32 = 0;
114 pub const VMADDR_CID_LOCAL: u32 = 1;
115 pub const VMADDR_CID_HOST: u32 = 2;
116 pub const VMADDR_FLAG_TO_HOST: u32 = 1;
117 pub const VM_SOCKETS_INVALID_VERSION: i32 = -1;
118 pub const SOL_VSOCK: u32 = 287;
119 pub const VSOCK_RECVERR: u32 = 1;
120 #[repr(C)]
121 #[derive(Copy, Clone)]
122 pub union __kernel_sockaddr_storage__bindgen_ty_1 {
123 pub __bindgen_anon_1: __kernel_sockaddr_storage__bindgen_ty_1__bindgen_ty_1,
124 pub __align: *mut crate::ctypes::c_void,
125 }
126 #[repr(C)]
127 #[derive(Copy, Clone)]
128 pub union __vector128__bindgen_ty_1 {
129 pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1,
130 pub u: [__u32; 4usize],
131 }