pub unsafe extern "C" fn switchtec_diag_pattern_inject( dev: *mut switchtec_dev, port_id: c_int, err_cnt: c_uint, ) -> c_int