⚠️ VeridianOS Kernel Documentation - This is low-level kernel code. All functions are unsafe unless explicitly marked otherwise. no_std

with_tpm_mut

Function with_tpm_mut 

Source
pub fn with_tpm_mut<R, F: FnOnce(&mut Tpm) -> R>(f: F) -> Option<R>
Expand description

Execute a closure with a mutable reference to the global TPM instance.

Returns None if the TPM is not initialized.