#[unsafe(no_mangle)]pub unsafe extern "C" fn rust_ktrace_init_cpu_buffer(
cpu_num: u32,
spsc_buffer_ptr: *mut c_void,
drop_stats_ptr: *mut c_void,
process_koid: u64,
thread_koid: u64,
cpu_ref_header_entry: u16,
) -> i32Expand description
Initializes the KTraceBuffer for a specific CPU using a pointer to the C++ SpscBuffer.
ยงSafety
spsc_buffer_ptrmust point to a valid C++SpscBufferinstance which is binary-compatible withspsc_buffer::Buffer<NoOpAllocator>.