Skip to main content

restricted_exit_callback_c

Function restricted_exit_callback_c 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn restricted_exit_callback_c( context: *mut RestrictedEnterContext<'_>, reason_code: zx_restricted_reason_t, extended_pstate_ptr_ptr: *mut ExtendedPstatePointer, ) -> bool
Expand description

Entry point invoked from the architecture-specific restricted_return_loop assembly trampoline upon each exit from restricted mode.

ยงSafety

  • context must point to the valid [RestrictedEnterContext] passed to restricted_enter_loop on the current thread.
  • extended_pstate_ptr_ptr must point to the valid ExtendedPstatePointer passed to restricted_enter_loop on the current thread.