MCPcopy Create free account
hub / github.com/cloud-hypervisor/cloud-hypervisor / size

Method size

pci/src/msi.rs:104–115  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

102 }
103
104 fn size(&self) -> u64 {
105 let mut size: u64 = 0xa;
106
107 if self.addr_64_bits() {
108 size += 0x4;
109 }
110 if self.per_vector_mask() {
111 size += 0xa;
112 }
113
114 size
115 }
116
117 fn update(&mut self, offset: u64, data: &[u8]) {
118 // Calculate message data offset depending on the address being 32 or

Callers

nothing calls this directly

Calls 2

addr_64_bitsMethod · 0.80
per_vector_maskMethod · 0.80

Tested by

no test coverage detected