[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <dfb262380905250250w2d689b28i25edc3d492b09676@mail.gmail.com>
Date: Mon, 25 May 2009 12:50:22 +0300
From: Ramagudi Naziir <naziirr@...il.com>
To: linux-kernel@...r.kernel.org
Subject: serial device and fsync
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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists