Date: Sat, 17 Jul 2004 23:23:53 +0200 From: Richard Kaestner <richard.kaestner@ycn.com> To: freebsd-questions@freebsd.org Subject: Device Driver - before I start Message-ID: <200407172323.53155.richard.kaestner@ycn.com>
next in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200407172323.53155.richard.kaestner>