clockbound_vmclock_open

Function clockbound_vmclock_open 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn clockbound_vmclock_open( clockbound_shm_path: *const c_char, vmclock_shm_path: *const c_char, err: *mut clockbound_err, ) -> *mut clockbound_ctx
Expand description

Open and create a reader to the Clockbound shared memory segment and the VMClock shared memory segment.

Create a VMClock pointing at the paths passed to this call, and package it (and any other side information) into a clockbound_ctx. A reference to the context is passed back to the C caller, and needs to live beyond the scope of this function.

ยงSafety

Rely on the caller to pass valid pointers.