• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /* automatically generated by tools/bindgen-all-the-things */
2 
3 #![allow(clippy::missing_safety_doc)]
4 #![allow(clippy::undocumented_unsafe_blocks)]
5 #![allow(clippy::upper_case_acronyms)]
6 #![allow(non_upper_case_globals)]
7 #![allow(non_camel_case_types)]
8 #![allow(non_snake_case)]
9 #![allow(dead_code)]
10 
11 // Added by virtio_sys/bindgen.sh
12 use data_model::Le32;
13 use zerocopy::FromBytes;
14 use zerocopy::Immutable;
15 use zerocopy::IntoBytes;
16 use zerocopy::KnownLayout;
17 
18 pub const VIRTIO_FS_SHMCAP_ID_CACHE: u32 = 0;
19 #[repr(C, packed)]
20 #[derive(Debug, Copy, Clone, FromBytes, Immutable, IntoBytes, KnownLayout)]
21 pub struct virtio_fs_config {
22     pub tag: [u8; 36usize],
23     pub num_request_queues: Le32,
24 }
25 impl Default for virtio_fs_config {
default() -> Self26     fn default() -> Self {
27         let mut s = ::std::mem::MaybeUninit::<Self>::uninit();
28         unsafe {
29             ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1);
30             s.assume_init()
31         }
32     }
33 }
34