Skip to main content

rust_ktrace_init

Function rust_ktrace_init 

Source
#[unsafe(no_mangle)]
pub unsafe extern "C" fn rust_ktrace_init( num_buffers: u32, state_ptr: *mut c_void, ) -> i32
Expand description

Initializes the global KTrace instance with the given number of CPU buffers.

ยงSafety

This must be called at most once during kernel boot.