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

Method probe_caps

tpm/src/emulator.rs:177–187  ·  view source on GitHub ↗

Gather TPM Capabilities and cache them in Emulator

(&mut self)

Source from the content-addressed store, hash-verified

175 /// Gather TPM Capabilities and cache them in Emulator
176 ///
177 fn probe_caps(&mut self) -> Result<()> {
178 let mut caps: u64 = 0;
179 self.run_control_cmd(
180 Commands::CmdGetCapability,
181 &mut caps,
182 0,
183 mem::size_of::<u64>(),
184 )?;
185 self.caps = caps;
186 Ok(())
187 }
188
189 /// Check if minimum set of capabilities are supported
190 fn check_caps(&mut self) -> bool {

Callers 1

newMethod · 0.80

Calls 1

run_control_cmdMethod · 0.80

Tested by

no test coverage detected