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

with_tpm

Function with_tpm 

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

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

Returns None if the TPM is not initialized.