Debian Codegraph @

third_party/rust/linux-raw-sys/src/s390x/loop_device.rs

raw
1 /* automatically generated by rust-bindgen 0.66.1 */
2
3 pub type __kernel_size_t = crate::ctypes::c_ulong;
4 pub type __kernel_ssize_t = crate::ctypes::c_long;
5 pub type __kernel_old_dev_t = crate::ctypes::c_ushort;
6 pub type __kernel_ino_t = crate::ctypes::c_uint;
7 pub type __kernel_mode_t = crate::ctypes::c_uint;
8 pub type __kernel_ipc_pid_t = crate::ctypes::c_int;
9 pub type __kernel_uid_t = crate::ctypes::c_uint;
10 pub type __kernel_gid_t = crate::ctypes::c_uint;
11 pub type __kernel_ptrdiff_t = crate::ctypes::c_long;
12 pub type __kernel_sigset_t = crate::ctypes::c_ulong;
13 pub type __kernel_long_t = crate::ctypes::c_long;
14 pub type __kernel_ulong_t = crate::ctypes::c_ulong;
15 pub type __kernel_pid_t = crate::ctypes::c_int;
16 pub type __kernel_suseconds_t = __kernel_long_t;
17 pub type __kernel_daddr_t = crate::ctypes::c_int;
18 pub type __kernel_uid32_t = crate::ctypes::c_uint;
19 pub type __kernel_gid32_t = crate::ctypes::c_uint;
20 pub type __kernel_old_uid_t = __kernel_uid_t;
21 pub type __kernel_old_gid_t = __kernel_gid_t;
22 pub type __kernel_off_t = __kernel_long_t;
23 pub type __kernel_loff_t = crate::ctypes::c_longlong;
24 pub type __kernel_old_time_t = __kernel_long_t;
25 pub type __kernel_time_t = __kernel_long_t;
26 pub type __kernel_time64_t = crate::ctypes::c_longlong;
27 pub type __kernel_clock_t = __kernel_long_t;
28 pub type __kernel_timer_t = crate::ctypes::c_int;
29 pub type __kernel_clockid_t = crate::ctypes::c_int;
30 pub type __kernel_caddr_t = *mut crate::ctypes::c_char;
31 pub type __kernel_uid16_t = crate::ctypes::c_ushort;
32 pub type __kernel_gid16_t = crate::ctypes::c_ushort;
33 pub type __s8 = crate::ctypes::c_schar;
34 pub type __u8 = crate::ctypes::c_uchar;
35 pub type __s16 = crate::ctypes::c_short;
36 pub type __u16 = crate::ctypes::c_ushort;
37 pub type __s32 = crate::ctypes::c_int;
38 pub type __u32 = crate::ctypes::c_uint;
39 pub type __s64 = crate::ctypes::c_longlong;
40 pub type __u64 = crate::ctypes::c_ulonglong;
41 pub type addr_t = crate::ctypes::c_ulong;
42 pub type saddr_t = crate::ctypes::c_long;
43 pub type __kernel_key_t = crate::ctypes::c_int;
44 pub type __kernel_mqd_t = crate::ctypes::c_int;
45 pub type __le16 = __u16;
46 pub type __be16 = __u16;
47 pub type __le32 = __u32;
48 pub type __be32 = __u32;
49 pub type __le64 = __u64;
50 pub type __be64 = __u64;
51 pub type __sum16 = __u16;
52 pub type __wsum = __u32;
53 pub type __poll_t = crate::ctypes::c_uint;
54 #[repr(C, packed(4))]
55 #[derive(Copy, Clone)]
56 pub struct __vector128 {
57 pub __bindgen_anon_1: __vector128__bindgen_ty_1,
58 }
59 #[repr(C)]
60 #[derive(Debug, Copy, Clone)]
61 pub struct __vector128__bindgen_ty_1__bindgen_ty_1 {
62 pub high: __u64,
63 pub low: __u64,
64 }
65 #[repr(C)]
66 #[derive(Debug, Copy, Clone)]
67 pub struct loop_info {
68 pub lo_number: crate::ctypes::c_int,
69 pub lo_device: __kernel_old_dev_t,
70 pub lo_inode: crate::ctypes::c_ulong,
71 pub lo_rdevice: __kernel_old_dev_t,
72 pub lo_offset: crate::ctypes::c_int,
73 pub lo_encrypt_type: crate::ctypes::c_int,
74 pub lo_encrypt_key_size: crate::ctypes::c_int,
75 pub lo_flags: crate::ctypes::c_int,
76 pub lo_name: [crate::ctypes::c_char; 64usize],
77 pub lo_encrypt_key: [crate::ctypes::c_uchar; 32usize],
78 pub lo_init: [crate::ctypes::c_ulong; 2usize],
79 pub reserved: [crate::ctypes::c_char; 4usize],
80 }
81 #[repr(C)]
82 #[derive(Debug, Copy, Clone)]
83 pub struct loop_info64 {
84 pub lo_device: __u64,
85 pub lo_inode: __u64,
86 pub lo_rdevice: __u64,
87 pub lo_offset: __u64,
88 pub lo_sizelimit: __u64,
89 pub lo_number: __u32,
90 pub lo_encrypt_type: __u32,
91 pub lo_encrypt_key_size: __u32,
92 pub lo_flags: __u32,
93 pub lo_file_name: [__u8; 64usize],
94 pub lo_crypt_name: [__u8; 64usize],
95 pub lo_encrypt_key: [__u8; 32usize],
96 pub lo_init: [__u64; 2usize],
97 }
98 #[repr(C)]
99 #[derive(Debug, Copy, Clone)]
100 pub struct loop_config {
101 pub fd: __u32,
102 pub block_size: __u32,
103 pub info: loop_info64,
104 pub __reserved: [__u64; 8usize],
105 }
106 pub const LO_NAME_SIZE: u32 = 64;
107 pub const LO_KEY_SIZE: u32 = 32;
108 pub const LO_CRYPT_NONE: u32 = 0;
109 pub const LO_CRYPT_XOR: u32 = 1;
110 pub const LO_CRYPT_DES: u32 = 2;
111 pub const LO_CRYPT_FISH2: u32 = 3;
112 pub const LO_CRYPT_BLOW: u32 = 4;
113 pub const LO_CRYPT_CAST128: u32 = 5;
114 pub const LO_CRYPT_IDEA: u32 = 6;
115 pub const LO_CRYPT_DUMMY: u32 = 9;
116 pub const LO_CRYPT_SKIPJACK: u32 = 10;
117 pub const LO_CRYPT_CRYPTOAPI: u32 = 18;
118 pub const MAX_LO_CRYPT: u32 = 20;
119 pub const LOOP_SET_FD: u32 = 19456;
120 pub const LOOP_CLR_FD: u32 = 19457;
121 pub const LOOP_SET_STATUS: u32 = 19458;
122 pub const LOOP_GET_STATUS: u32 = 19459;
123 pub const LOOP_SET_STATUS64: u32 = 19460;
124 pub const LOOP_GET_STATUS64: u32 = 19461;
125 pub const LOOP_CHANGE_FD: u32 = 19462;
126 pub const LOOP_SET_CAPACITY: u32 = 19463;
127 pub const LOOP_SET_DIRECT_IO: u32 = 19464;
128 pub const LOOP_SET_BLOCK_SIZE: u32 = 19465;
129 pub const LOOP_CONFIGURE: u32 = 19466;
130 pub const LOOP_CTL_ADD: u32 = 19584;
131 pub const LOOP_CTL_REMOVE: u32 = 19585;
132 pub const LOOP_CTL_GET_FREE: u32 = 19586;
133 pub const LO_FLAGS_READ_ONLY: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_READ_ONLY;
134 pub const LO_FLAGS_AUTOCLEAR: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_AUTOCLEAR;
135 pub const LO_FLAGS_PARTSCAN: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_PARTSCAN;
136 pub const LO_FLAGS_DIRECT_IO: _bindgen_ty_1 = _bindgen_ty_1::LO_FLAGS_DIRECT_IO;
137 #[repr(u32)]
138 #[non_exhaustive]
139 #[derive(Debug, Copy, Clone, Hash, PartialEq, Eq)]
140 pub enum _bindgen_ty_1 {
141 LO_FLAGS_READ_ONLY = 1,
142 LO_FLAGS_AUTOCLEAR = 4,
143 LO_FLAGS_PARTSCAN = 8,
144 LO_FLAGS_DIRECT_IO = 16,
145 }
146 #[repr(C)]
147 #[derive(Copy, Clone)]
148 pub union __vector128__bindgen_ty_1 {
149 pub __bindgen_anon_1: __vector128__bindgen_ty_1__bindgen_ty_1,
150 pub u: [__u32; 4usize],
151 }