From owner-freebsd-hackers Fri Oct 27 6:29:56 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 7D1AD37B479 for ; Fri, 27 Oct 2000 06:29:54 -0700 (PDT) Received: from erlangen01.atrada.de by hermes.atrada.de via smtpd (for hub.FreeBSD.org [216.136.204.18]) with SMTP; 27 Oct 2000 13:29:54 UT Received: (private information removed) Message-ID: <58A002A02C5ED311812E0050044517F00D2614@erlangen01.atrada.de> From: Alexander Maret To: 'Poul-Henning Kamp' Cc: "'msmith@mass.osd.bsdi.com'" , "'freebsd-hackers@freebsd.org'" Subject: Re: Accessing the tty structure of an opened device Date: Fri, 27 Oct 2000 15:29:50 +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 > -----Ursprungliche Nachricht----- > From: Poul-Henning Kamp [mailto:phk@critter.freebsd.dk] > Subject: Re: Accessing the tty structure of an opened device > > You will need to do this in a device driver, there is no way you > can reliably measure that from userland. > > Trust me on this: I've tried. That's what I wanted to do. I wanted to write a character device which on read() passes the last IR-code. Well as Mike Smith told me: "you cannot poll the serial line at anything like a useful speed to perform IR decoding" my hopes are all gone to get a simple solution. Do I have to write my own serial driver to get what I want or is it possible to use functions of the "build in" serial device driver? Alex To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message