From owner-freebsd-hackers Thu Oct 19 9:17:24 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from hermes.atrada.de (hermes.atrada.de [212.118.32.33]) by hub.freebsd.org (Postfix) with SMTP id 81E3937B4E5 for ; Thu, 19 Oct 2000 09:17:21 -0700 (PDT) Received: from erlangen01.atrada.de by hermes.atrada.de via smtpd (for hub.FreeBSD.org [216.136.204.18]) with SMTP; 19 Oct 2000 16:17:21 UT Received: (private information removed) Message-ID: <58A002A02C5ED311812E0050044517F00D260A@erlangen01.atrada.de> From: Alexander Maret To: "'andrew@ugh.net.au '" Cc: "'freebsd-hackers@freebsd.org'" Subject: RE: How to sense DCD on serial port? Date: Thu, 19 Oct 2000 18:17:07 +0200 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2650.21) Content-Type: text/plain Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG >-----Original Message----- >From: andrew@ugh.net.au >To: Alexander Maret >Cc: 'freebsd-hackers@freebsd.org' >Sent: 19.10.00 15:30 >Subject: Re: How to sense DCD on serial port? > > > >> How can I sense the state of the DCD line that quick? I > >I'm not sure how quick it is but have you tried ioctl with an argument >of >TIOCMGET? See tty(4) for more details. Thanks for your answer. I meanwhile tried TIOCMGET and I can sense the state of dcd. Unfortunately I can't continously check DCD because this takes ernormous cpu time. Is there a possibility to get a signal,intr or whatever, whenever the state of DCD changes? If not, what could you think of I have to do to implement such a feature? Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message