Debian Codegraph @

debian/rust-vendor/linux-raw-sys/src/powerpc/loop_device.rs

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