From: "Anindha Parthy" <anindha@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: accurate serial timestamp
Date: Mon, 30 Oct 2006 22:51:23 +1100 [thread overview]
Message-ID: <d48dcd3c0610300351g6cb67b0eob3e6bfdf1d1fedc2@mail.gmail.com> (raw)
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
reply other threads:[~2006-10-30 11:51 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=d48dcd3c0610300351g6cb67b0eob3e6bfdf1d1fedc2@mail.gmail.com \
--to=anindha@gmail.com \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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®