#[unsafe(no_mangle)]pub unsafe extern "C" fn clockbound_open(
clockbound_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.
Create a ShmReader pointing at the path 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.