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::AsBytes; 14 use zerocopy::FromBytes; 15 use zerocopy::FromZeroes; 16 17 pub const VIRTIO_FS_SHMCAP_ID_CACHE: u32 = 0; 18 #[repr(C, packed)] 19 #[derive(Debug, Copy, Clone, FromZeroes, FromBytes, AsBytes)] 20 pub struct virtio_fs_config { 21 pub tag: [u8; 36usize], 22 pub num_request_queues: Le32, 23 } 24 impl Default for virtio_fs_config { default() -> Self25 fn default() -> Self { 26 let mut s = ::std::mem::MaybeUninit::<Self>::uninit(); 27 unsafe { 28 ::std::ptr::write_bytes(s.as_mut_ptr(), 0, 1); 29 s.assume_init() 30 } 31 } 32 } 33