MCPcopy Create free account
hub / github.com/Bareflank/hypervisor / initialize

Method initialize

example/default_rust/src/x64/intel/vs_t.rs:60–80  ·  view source on GitHub ↗

<!-- description --> @brief Initializes this VsT <!-- inputs/outputs --> @param gs the gs_t to use @param tls the tls_t to use @param sys the bf_syscall_t to use @param intrinsic the intrinsic_t to use @param i the ID for this VsT

(
        &mut self,
        gs: &crate::GsT,
        tls: &crate::TlsT,
        sys: &syscall::BfSyscallT,
        intrinsic: &crate::IntrinsicT,
        i: bsl::SafeU16,
    )

Source from the content-addressed store, hash-verified

58 /// @param i the ID for this VsT
59 ///
60 pub fn initialize(
61 &mut self,
62 gs: &crate::GsT,
63 tls: &crate::TlsT,
64 sys: &syscall::BfSyscallT,
65 intrinsic: &crate::IntrinsicT,
66 i: bsl::SafeU16,
67 ) {
68 bsl::expects(self.id() == syscall::BF_INVALID_ID);
69 bsl::expects(self.m_allocated == crate::AllocatedStatusT::Deallocated);
70
71 bsl::expects(i.is_valid_and_checked());
72 bsl::expects(i != syscall::BF_INVALID_ID);
73
74 bsl::discard(gs);
75 bsl::discard(tls);
76 bsl::discard(sys);
77 bsl::discard(intrinsic);
78
79 self.m_id = !i;
80 }
81
82 /// <!-- description -->
83 /// @brief Release the VsT.

Callers

nothing calls this directly

Calls 1

idMethod · 0.45

Tested by

no test coverage detected