Function cpu_instructions_reader::ffi::createInstructionNumberReader
source ยท pub unsafe extern "C" fn createInstructionNumberReader(
cpus: *const c_int,
num_cpus: size_t,
pid: pid_t,
) -> *mut InstructionNumberReaderRawExpand description
Mock constructor
This C function internally calls malloc to allocate a memory to construct InstructionNumberReaderRaw, and returns a pointer to the heap
If there is an error in the creation process, the memory will be free, and the pointer will be set to NULL to return, special attention should be paid