lkml.org 
[lkml]   [2009]   [May]   [25]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
Subjectserial device and fsync
From
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.


\
 
 \ /
  Last update: 2009-05-25 11:53    [W:0.036 / U:1.988 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site