mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* accurate serial timestamp
@ 2006-10-30 11:51 Anindha Parthy
  0 siblings, 0 replies; only message in thread
From: Anindha Parthy @ 2006-10-30 11:51 UTC (permalink / raw)
  To: linux-kernel

Hello,

I would like to take a high accuracy timestamp whenever data is
received on the serial port.

I think the best place to do this is in the tty_flip_buffer_push
method of the tty_io.c file.

   2652 void tty_flip_buffer_push(struct tty_struct *tty)
   2653 {
   2654     if (tty->low_latency)
   2655         flush_to_ldisc((void *) tty);
   2656     else
   2657         schedule_delayed_work(&tty->flip.work, 1);
   2658 }

I would buffer the timestamps, and access them using an ioctl.

Is this the best way of doing this?

I am currently using the 2.6.15 kernel.

Regards,

Anindha

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2006-10-30 11:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-10-30 11:51 accurate serial timestamp Anindha Parthy

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®