A struct timeval is not the same size as a pair of lsampl_t's for 64-bit, so can't point 'data' in a comedi_insn to a struct timeval and expect it to work!