Skip to main content

MkfdIoctlSecurityAttestationArgs

Struct MkfdIoctlSecurityAttestationArgs 

Source
#[repr(C)]
pub struct MkfdIoctlSecurityAttestationArgs { pub dcu_id: u32, pub cmd_id: u32, pub version: u32, pub request_data: *mut c_void, pub request_size: u64, pub response_data: *mut c_void, pub response_size: u64, pub fw_err: u64, }
Expand description

IOCTL arguments structure for security attestation requests Note: Maintains #[repr(C)] for compatibility with kernel interface

Fields§

§dcu_id: u32

DCU identifier for target device

§cmd_id: u32

For compatibility

§version: u32

Message version number(default 1)

§request_data: *mut c_void

Request structure address

§request_size: u64

Request structure size

§response_data: *mut c_void

Response structure address

§response_size: u64

Response structure size

§fw_err: u64

Firmware error address

Implementations§

Source§

impl MkfdIoctlSecurityAttestationArgs

Source

pub fn new() -> Self

Creates a new instance with default values Note: Buffers are initialized as null pointers

Source

pub fn set_attestation_args( &mut self, dcu_id: u32, userdata: [u8; 64], ) -> Result<()>

Configures attestation arguments with DCU ID and nonce

§Safety

Contains unsafe operations for memory allocation and pointer manipulation

§Arguments
  • dcu_id - Target DCU device identifier
  • userdata - 64-byte cryptographic nonce for attestation
Source

pub unsafe fn free_buffers(&mut self)

Releases allocated memory buffers

§Safety

Must only be called when buffers are no longer needed Calling with dangling pointers is undefined behavior

Source

pub fn extract_report(&mut self) -> Result<Option<AttestationReport>, Error>

Extracts attestation report from response buffer

Returns:

  • Some(AttestationReport) if valid report exists
  • None if response buffer contains no valid report

Trait Implementations§

Source§

impl Default for MkfdIoctlSecurityAttestationArgs

Source§

fn default() -> Self

Returns the “default value” for a type. Read more
Source§

impl Drop for MkfdIoctlSecurityAttestationArgs

Automatic cleanup implementation to prevent memory leaks

Source§

fn drop(&mut self)

Executes the destructor for this type. Read more
Source§

fn pin_drop(self: Pin<&mut Self>)

🔬This is a nightly-only experimental API. (pin_ergonomics)
Execute the destructor for this type, but different to Drop::drop, it requires self to be pinned. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<V, T> VZip<V> for T
where V: MultiLane<T>,

Source§

fn vzip(self) -> V

Source§

impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
where ST: ?Sized, DT: ?Sized,

Source§

impl<T> Read<Exclusive, BecauseExclusive> for T
where T: ?Sized,