lkml.org 
[lkml]   [2006]   [Oct]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
DateMon, 30 Oct 2006 22:51:23 +1100
From"Anindha Parthy" <>
Subjectaccurate serial timestamp
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
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-10-30 12:55    [from the cache]
©2003-2010