From owner-freebsd-hackers Fri Oct 27 6:15: 7 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from mass.osd.bsdi.com (adsl-63-202-178-14.dsl.snfc21.pacbell.net [63.202.178.14]) by hub.freebsd.org (Postfix) with ESMTP id 5C0A837B479 for ; Fri, 27 Oct 2000 06:15:04 -0700 (PDT) Received: from mass.osd.bsdi.com (localhost [127.0.0.1]) by mass.osd.bsdi.com (8.11.0/8.11.1) with ESMTP id e9RD6hF00416; Fri, 27 Oct 2000 06:06:44 -0700 (PDT) (envelope-from msmith@mass.osd.bsdi.com) Message-Id: <200010271306.e9RD6hF00416@mass.osd.bsdi.com> X-Mailer: exmh version 2.1.1 10/15/1999 To: Alexander Maret Cc: "'Poul-Henning Kamp'" , "'freebsd-hackers@freebsd.org'" Subject: Re: AW: Accessing the tty structure of an opened device In-reply-to: Your message of "Fri, 27 Oct 2000 14:59:41 +0200." <58A002A02C5ED311812E0050044517F00D2612@erlangen01.atrada.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 27 Oct 2000 06:06:43 -0700 From: Mike Smith Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Thanks for your answer but unfortunately you misunderstood my > intention (probably because of my bad english). > I already saw that I can get the state of the DCD line via > ioctl(). But to really get all pulses and spaces of the IR > device I would have to check DCD continously. What I need > is something to get a signal/intr/wakeup as soon as dcd changes. > > My hope was that I could define a TSA_CARR_OFF and then do > a tsleep to get a wakeup as soon as DCD goes down. On DCD down > do a tsleep untill it gets up again. > > Unfortunately to go tsleep and wait for TSA_CARR_OFF/ON I have to > get access to the tty structure of my serial port. Stop trying to do this; you cannot poll the serial line at anything like a useful speed to perform IR decoding. The entire approach you're trying to take is unworkable. -- ... every activity meets with opposition, everyone who acts has his rivals and unfortunately opponents also. But not because people want to be opponents, rather because the tasks and relationships force people to take different points of view. [Dr. Fritz Todt] V I C T O R Y N O T V E N G E A N C E To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message