Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 02 Dec 2008 16:09:03 -0600 (CST)
From:      Sergey Babkin <babkin@verizon.net>
To:        noresult@xs4all.nl
Cc:        freebsd-hackers@freebsd.org
Subject:   Re: TCSBRK not implemented in linux compat
Message-ID:  <1446553908.92321228255743687.JavaMail.root@vms226.mailsrvcs.net>

next in thread | raw e-mail | index | archive | help

   >While trying to get = a linux binary running on FreeBSD I encountered
   >the following prob= lem during serial port I/O.
   >
   >Dec 1 22:22:34 soekris kernel: = linux: pid 7239 (linuxbinary): ioctl
   >fd=3D0, cmd=3D0x5409 ('T',9) = is not implemented
   >
   >0x5409 turns out to be TCSBRK, which is = not implemented (yet?). Can
   >anyone give me some clues where / how = to start implementing this?
   It
   >seems like the linux way of handlin= g it is to call tcdrain(), but
   I'm
   >not sure as to how this transla= tes to the FreeBSD compat layer.
   It should probably be translated to= the same BSD call. What it does
   is
   drain the buffer then send the seria= l BREAK signal: a low-voltage
   signal lasting
   longer than the length of o= ne normal character. The other side can
   detect this and generate
   an inte= rrupt, which then may get translated to a signal (see the
   stty parameters&n= bsp;
   ignbrk, brkint).
   -SB



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1446553908.92321228255743687.JavaMail.root>