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

Method stop_tpm

tpm/src/emulator.rs:431–437  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

429 }
430
431 fn stop_tpm(&mut self) -> Result<()> {
432 let mut res: PtmResult = 0;
433
434 self.run_control_cmd(Commands::CmdStop, &mut res, 0, mem::size_of::<u32>())?;
435
436 Ok(())
437 }
438
439 pub fn get_buffer_size(&mut self) -> usize {
440 self.set_buffer_size(0).unwrap_or(TPM_CRB_BUFFER_MAX)

Callers 1

set_buffer_sizeMethod · 0.80

Calls 1

run_control_cmdMethod · 0.80

Tested by

no test coverage detected