From owner-freebsd-questions@FreeBSD.ORG Sat Jul 17 21:23:59 2004 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 350A016A4CE for ; Sat, 17 Jul 2004 21:23:59 +0000 (GMT) Received: from richardkaestner.com (212-88-187-192.ADSL.ycn.com [212.88.187.192]) by mx1.FreeBSD.org (Postfix) with SMTP id 01D0943D1F for ; Sat, 17 Jul 2004 21:23:58 +0000 (GMT) (envelope-from rfk@richardkaestner.com) Received: (qmail 11832 invoked from network); 17 Jul 2004 21:23:54 -0000 Received: from pc-01034.richardkaestner.com (HELO sv01.rfk.priv) (10.200.4.10) by stargate.richardkaestner.com (10.200.254.254) with ESMTP; 17 Jul 2004 21:23:54 -0000 Received: by sv01.rfk.priv (Postfix, from userid 1001) id 9F95910992; Sat, 17 Jul 2004 23:23:53 +0200 (CEST) From: Richard Kaestner To: freebsd-questions@freebsd.org Date: Sat, 17 Jul 2004 23:23:53 +0200 User-Agent: KMail/1.6.2 MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Message-Id: <200407172323.53155.richard.kaestner@ycn.com> Subject: Device Driver - before I start X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list Reply-To: richard.kaestner@ycn.com List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 17 Jul 2004 21:23:59 -0000 Is there a helping hand to give me some advice where / how to start? I want: =2D a "pseudo device", which collects every now and then data from an exter= nal box via serial line (/dev/cuaa1) Box-Status and some more information shoud be readable, whichever Commands have to be sent to the Box could be done via ioctl =2D using FreeBSD 4.10 ( going to 5.x later) =2D I am currently reading: FreeBSD Handbook and Developers Handbook Daemonnews: Oct 2000: KLD example / Tutorial /usr/src/share/examples/driver/make... ( and McKusik's Design ...) =2D And finally: this is going to be my first Unix-Driver ... (although, I have some experience in low-level programming) I need Infos on: =2D is there a "better" (or "more preferred") way than written above? =2D is there a "simple example driver" doing similar things =2D actually, can I simply access /dev/cuaa1 from "inside" a driver ? (suppose, I should not ...) =2D or should I simply / better stay with a daemon ? thanks in advance for hints! =2D-=20 Mit freundlichen Gr=FC=DFen Richard K=E4stner EDV-Beratung Woerthgasse 17 2500 Baden Austria