Debian Codegraph @

src/bindings/x86_64/virtio_ring.rs

raw symbols SCIP
1 /* automatically generated by rust-bindgen 0.71.1 */
2
3 #[repr(C)]
4 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)]
5 pub struct __IncompleteArrayFieldrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__IncompleteArrayField#<T>(::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::markerrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/::PhantomDatarust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/PhantomData#<T>, [T; 0]);
6 impl<T> __IncompleteArrayFieldrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__IncompleteArrayField#<T> {
7 #[inline]
8 pub const fn newrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/impl#[`__IncompleteArrayField<T>`]new().() -> Selfrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/impl#[`__IncompleteArrayField<T>`] {
9 __IncompleteArrayFieldrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__IncompleteArrayField#(::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::markerrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/::PhantomDatarust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/PhantomData#, [])
10 }
11 #[inline]
12 pub fn as_ptrrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/impl#[`__IncompleteArrayField<T>`]as_ptr().(&self) -> *const T {
13 self as *const _ as *const T
14 }
15 #[inline]
16 pub fn as_mut_ptrrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/impl#[`__IncompleteArrayField<T>`]as_mut_ptr().(&mut self) -> *mut T {
17 self as *mut _ as *mut T
18 }
19 #[inline]
20 pub unsafe fn as_slicerust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/impl#[`__IncompleteArrayField<T>`]as_slice().(&self, len: usize) -> &[T] {
21 ::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::slicerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/::from_raw_partsrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/raw/from_raw_parts().(self.as_ptrrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/impl#[`__IncompleteArrayField<T>`]as_ptr().(), len)
22 }
23 #[inline]
24 pub unsafe fn as_mut_slicerust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/impl#[`__IncompleteArrayField<T>`]as_mut_slice().(&mut self, len: usize) -> &mut [T] {
25 ::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::slicerust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc slice/::from_raw_parts_mutrust-analyzer cargo core https://github.com/rust-lang/rust/library/core slice/raw/from_raw_parts_mut().(self.as_mut_ptrrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/impl#[`__IncompleteArrayField<T>`]as_mut_ptr().(), len)
26 }
27 }
28 impl<T> ::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Debug# for __IncompleteArrayFieldrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__IncompleteArrayField#<T> {
29 fn fmtrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/impl#[`__IncompleteArrayField<T>`][Debug]fmt().(&self, fmt: &mut ::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Formatterrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Formatter#<'_>) -> ::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::fmtrust-analyzer cargo alloc https://github.com/rust-lang/rust/library/alloc fmt/::Resultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/Result# {
30 fmt.write_strrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/impl#[`Formatter<'a>`]write_str().("__IncompleteArrayField")
31 }
32 }
33 pub const VRING_DESC_F_NEXTrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_DESC_F_NEXT.: u32 = 1;
34 pub const VRING_DESC_F_WRITErust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_DESC_F_WRITE.: u32 = 2;
35 pub const VRING_DESC_F_INDIRECTrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_DESC_F_INDIRECT.: u32 = 4;
36 pub const VRING_PACKED_DESC_F_AVAILrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_PACKED_DESC_F_AVAIL.: u32 = 7;
37 pub const VRING_PACKED_DESC_F_USEDrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_PACKED_DESC_F_USED.: u32 = 15;
38 pub const VRING_USED_F_NO_NOTIFYrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_USED_F_NO_NOTIFY.: u32 = 1;
39 pub const VRING_AVAIL_F_NO_INTERRUPTrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_AVAIL_F_NO_INTERRUPT.: u32 = 1;
40 pub const VRING_PACKED_EVENT_FLAG_ENABLErust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_PACKED_EVENT_FLAG_ENABLE.: u32 = 0;
41 pub const VRING_PACKED_EVENT_FLAG_DISABLErust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_PACKED_EVENT_FLAG_DISABLE.: u32 = 1;
42 pub const VRING_PACKED_EVENT_FLAG_DESCrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_PACKED_EVENT_FLAG_DESC.: u32 = 2;
43 pub const VRING_PACKED_EVENT_F_WRAP_CTRrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_PACKED_EVENT_F_WRAP_CTR.: u32 = 15;
44 pub const VIRTIO_RING_F_INDIRECT_DESCrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VIRTIO_RING_F_INDIRECT_DESC.: u32 = 28;
45 pub const VIRTIO_RING_F_EVENT_IDXrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VIRTIO_RING_F_EVENT_IDX.: u32 = 29;
46 pub const VRING_AVAIL_ALIGN_SIZErust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_AVAIL_ALIGN_SIZE.: u32 = 2;
47 pub const VRING_USED_ALIGN_SIZErust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_USED_ALIGN_SIZE.: u32 = 4;
48 pub const VRING_DESC_ALIGN_SIZErust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/VRING_DESC_ALIGN_SIZE.: u32 = 16;
49 pub type __u16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__u16# = ::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::osrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/::rawrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/::c_ushortrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_ushort#;
50 pub type __u32rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__u32# = ::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::osrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/::rawrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/::c_uintrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_uint#;
51 pub type __u64rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__u64# = ::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::osrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/::rawrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/::c_ulonglongrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_ulonglong#;
52 pub type __le16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__le16# = __u16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__u16#;
53 pub type __le32rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__le32# = __u32rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__u32#;
54 pub type __le64rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__le64# = __u64rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__u64#;
55 pub type __virtio16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio16# = __u16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__u16#;
56 pub type __virtio32rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio32# = __u32rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__u32#;
57 pub type __virtio64rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio64# = __u64rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__u64#;
58 #[doc = " struct vring_desc - Virtio ring descriptors,\n 16 bytes long. These can chain together via @next.\n\n @addr: buffer address (guest-physical)\n @len: buffer length\n @flags: descriptor flags\n @next: index of the next descriptor in the chain,\n if the VRING_DESC_F_NEXT flag is set. We chain unused\n descriptors via this, too."]
59 #[repr(C)]
60 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)]
61 pub struct vring_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc# {
62 pub addrrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc#addr.: __virtio64rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio64#,
63 pub lenrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc#len.: __virtio32rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio32#,
64 pub flagsrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc#flags.: __virtio16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio16#,
65 pub nextrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc#next.: __virtio16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio16#,
66 }
67 #[allow(clippy::unnecessary_operation, clippy::identity_op)]
68 const _: () = {
69 ["Size of vring_desc"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<vring_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().16usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
70 ["Alignment of vring_desc"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<vring_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().8usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
71 ["Offset of field: vring_desc::addr"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc#, addr) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().0usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
72 ["Offset of field: vring_desc::len"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc#, len) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().8usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
73 ["Offset of field: vring_desc::flags"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc#, flags) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().12usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
74 ["Offset of field: vring_desc::next"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc#, next) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().14usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
75 };
76 #[repr(C)]
77 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)]
78 pub struct vring_availrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_avail# {
79 pub flagsrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_avail#flags.: __virtio16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio16#,
80 pub idxrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_avail#idx.: __virtio16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio16#,
81 pub ringrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_avail#ring.: __IncompleteArrayFieldrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__IncompleteArrayField#<__virtio16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio16#>,
82 }
83 #[allow(clippy::unnecessary_operation, clippy::identity_op)]
84 const _: () = {
85 ["Size of vring_avail"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<vring_availrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_avail#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().4usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
86 ["Alignment of vring_avail"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<vring_availrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_avail#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().2usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
87 ["Offset of field: vring_avail::flags"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_availrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_avail#, flags) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().0usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
88 ["Offset of field: vring_avail::idx"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_availrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_avail#, idx) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().2usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
89 ["Offset of field: vring_avail::ring"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_availrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_avail#, ring) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().4usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
90 };
91 #[repr(C)]
92 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)]
93 pub struct vring_used_elemrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used_elem# {
94 pub idrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used_elem#id.: __virtio32rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio32#,
95 pub lenrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used_elem#len.: __virtio32rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio32#,
96 }
97 #[allow(clippy::unnecessary_operation, clippy::identity_op)]
98 const _: () = {
99 ["Size of vring_used_elem"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<vring_used_elemrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used_elem#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().8usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
100 ["Alignment of vring_used_elem"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<vring_used_elemrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used_elem#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().4usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
101 ["Offset of field: vring_used_elem::id"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_used_elemrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used_elem#, id) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().0usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
102 ["Offset of field: vring_used_elem::len"]
103 [rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_used_elemrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used_elem#, len) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().4usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
104 };
105 pub type vring_used_elem_trust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used_elem_t# = vring_used_elemrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used_elem#;
106 #[repr(C)]
107 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:)]
108 pub struct vring_usedrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used# {
109 pub flagsrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used#flags.: __virtio16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio16#,
110 pub idxrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used#idx.: __virtio16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__virtio16#,
111 pub ringrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used#ring.: __IncompleteArrayFieldrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__IncompleteArrayField#<vring_used_elem_trust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used_elem_t#>,
112 }
113 #[allow(clippy::unnecessary_operation, clippy::identity_op)]
114 const _: () = {
115 ["Size of vring_used"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<vring_usedrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().4usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
116 ["Alignment of vring_used"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<vring_usedrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().4usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
117 ["Offset of field: vring_used::flags"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_usedrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used#, flags) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().0usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
118 ["Offset of field: vring_used::idx"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_usedrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used#, idx) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().2usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
119 ["Offset of field: vring_used::ring"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_usedrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used#, ring) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().4usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
120 };
121 #[doc = " struct vring_desc - Virtio ring descriptors,\n 16 bytes long. These can chain together via @next.\n\n @addr: buffer address (guest-physical)\n @len: buffer length\n @flags: descriptor flags\n @next: index of the next descriptor in the chain,\n if the VRING_DESC_F_NEXT flag is set. We chain unused\n descriptors via this, too."]
122 pub type vring_desc_trust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc_t# = vring_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc#;
123 pub type vring_avail_trust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_avail_t# = vring_availrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_avail#;
124 pub type vring_used_trust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used_t# = vring_usedrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used#;
125 #[repr(C)]
126 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)]
127 pub struct vringrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring# {
128 pub numrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring#num.: ::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::osrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/::rawrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/::c_uintrust-analyzer cargo std https://github.com/rust-lang/rust/library/std os/raw/c_uint#,
129 pub descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring#desc.: *mut vring_desc_trust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_desc_t#,
130 pub availrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring#avail.: *mut vring_avail_trust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_avail_t#,
131 pub usedrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring#used.: *mut vring_used_trust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_used_t#,
132 }
133 #[allow(clippy::unnecessary_operation, clippy::identity_op)]
134 const _: () = {
135 ["Size of vring"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<vringrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().32usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
136 ["Alignment of vring"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<vringrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().8usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
137 ["Offset of field: vring::num"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vringrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring#, num) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().0usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
138 ["Offset of field: vring::desc"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vringrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring#, desc) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().8usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
139 ["Offset of field: vring::avail"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vringrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring#, avail) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().16usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
140 ["Offset of field: vring::used"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vringrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring#, used) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().24usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
141 };
142 impl Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default# for vringrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring# {
143 fn defaultrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/impl#[vring][Default]default().() -> Selfrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/impl#[vring][Default] {
144 let mut s = ::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::MaybeUninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/MaybeUninit#::<Selfrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/impl#[vring][Default]>::uninitrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]uninit().();
145 unsafe {
146 ::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/::write_bytesrust-analyzer cargo core https://github.com/rust-lang/rust/library/core ptr/write_bytes().(s.as_mut_ptrrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]as_mut_ptr().(), 0, 1);
147 s.assume_initrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/maybe_uninit/impl#[`MaybeUninit<T>`]assume_init().()
148 }
149 }
150 }
151 #[repr(C)]
152 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)]
153 pub struct vring_packed_desc_eventrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc_event# {
154 pub off_wraprust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc_event#off_wrap.: __le16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__le16#,
155 pub flagsrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc_event#flags.: __le16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__le16#,
156 }
157 #[allow(clippy::unnecessary_operation, clippy::identity_op)]
158 const _: () = {
159 ["Size of vring_packed_desc_event"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<vring_packed_desc_eventrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc_event#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().4usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
160 ["Alignment of vring_packed_desc_event"]
161 [rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<vring_packed_desc_eventrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc_event#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().2usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
162 ["Offset of field: vring_packed_desc_event::off_wrap"]
163 [rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_packed_desc_eventrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc_event#, off_wrap) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().0usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
164 ["Offset of field: vring_packed_desc_event::flags"]
165 [rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_packed_desc_eventrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc_event#, flags) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().2usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
166 };
167 #[repr(C)]
168 #[deriverust-analyzer cargo core https://github.com/rust-lang/rust/library/core macros/builtin/derive:(Debugrust-analyzer cargo core https://github.com/rust-lang/rust/library/core fmt/macros/Debug:, Defaultrust-analyzer cargo core https://github.com/rust-lang/rust/library/core default/Default:, Copyrust-analyzer cargo core https://github.com/rust-lang/rust/library/core marker/Copy:, Clonerust-analyzer cargo core https://github.com/rust-lang/rust/library/core clone/Clone:, PartialEqrust-analyzer cargo core https://github.com/rust-lang/rust/library/core cmp/PartialEq:)]
169 pub struct vring_packed_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc# {
170 pub addrrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc#addr.: __le64rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__le64#,
171 pub lenrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc#len.: __le32rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__le32#,
172 pub idrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc#id.: __le16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__le16#,
173 pub flagsrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc#flags.: __le16rust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/__le16#,
174 }
175 #[allow(clippy::unnecessary_operation, clippy::identity_op)]
176 const _: () = {
177 ["Size of vring_packed_desc"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::size_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/size_of().::<vring_packed_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().16usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
178 ["Alignment of vring_packed_desc"][rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::align_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/align_of().::<vring_packed_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc#>() rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().8usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
179 ["Offset of field: vring_packed_desc::addr"]
180 [rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_packed_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc#, addr) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().0usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
181 ["Offset of field: vring_packed_desc::len"]
182 [rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_packed_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc#, len) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().8usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
183 ["Offset of field: vring_packed_desc::id"]
184 [rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_packed_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc#, id) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().12usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
185 ["Offset of field: vring_packed_desc::flags"]
186 [rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().::stdrust-analyzer cargo std https://github.com/rust-lang/rust/library/std crate/::memrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/::offset_ofrust-analyzer cargo core https://github.com/rust-lang/rust/library/core mem/offset_of!!(vring_packed_descrust-analyzer cargo virtio-bindings 0.2.7 virtio_ring/vring_packed_desc#, flags) rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().-rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub(). rust-analyzer cargo core https://github.com/rust-lang/rust/library/core ops/arith/impl#[usize][`Sub<Self>`]sub().14usize]rust-analyzer cargo core https://github.com/rust-lang/rust/library/core array/impl#[`[T; N]`][`Index<I>`]index().;
187 };