From: Ramagudi Naziir <naziirr@gmail.com>
To: linux-kernel@vger.kernel.org
Subject: serial device and fsync
Date: Mon, 25 May 2009 12:50:22 +0300 [thread overview]
Message-ID: <dfb262380905250250w2d689b28i25edc3d492b09676@mail.gmail.com> (raw)
Hi all,
I need to write(2) a certain character to a serial device (using the
standard /dev/ttySx), and make sure it was transferred to the device
before I continue. I tried fsync(2), but that failed (does fsync even
apply to character devices or only block devices ?).
Any idea ?
Is it even possible or should I just usleep(500ms) after write(2) ? (I
know, it's ugly..).
Thanks in advance,
Naziir.
next reply other threads:[~2009-05-25 9:50 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-05-25 9:50 Ramagudi Naziir [this message]
2009-05-25 13:36 ` serial device and fsync Alan Cox
2009-05-25 13:50 ` Ramagudi Naziir
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=dfb262380905250250w2d689b28i25edc3d492b09676@mail.gmail.com \
--to=naziirr@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;
as well as URLs for NNTP newsgroup(s).