Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 18 Jul 2004 00:15:40 -0700
From:      Henrik W Lund <henrik.w.lund@broadpark.no>
To:        richard.kaestner@ycn.com
Cc:        freebsd-questions@freebsd.org
Subject:   Re: Device Driver - before I start
Message-ID:  <40FA239C.8060202@broadpark.no>
In-Reply-To: <200407172323.53155.richard.kaestner@ycn.com>
References:  <200407172323.53155.richard.kaestner@ycn.com>

next in thread | previous in thread | raw e-mail | index | archive | help
Richard Kaestner wrote:

>Is there a helping hand to give me some advice where / how to start?
>
>I want:
>- a "pseudo device", which collects every now and then data from an external
>  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
>- using FreeBSD 4.10 ( going to 5.x later)
>- 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 ...)
>- And finally: this is going to be my first Unix-Driver ...
>  (although, I have some experience in low-level programming)
>
>I need Infos on:
>- is there a "better" (or "more preferred") way than written above?
>- is there a "simple example driver" doing similar things
>- actually, can I simply access /dev/cuaa1 from "inside" a driver ?
>  (suppose, I should not ...)
>- or should I simply / better stay with a daemon ?
>
>thanks in advance for hints!
>  
>
Greetings!

As has been pointed out to me just recently:

http://www.freebsd.org/doc/en_US.ISO8859-1/books/arch-handbook/driverbasics.html

is an excellent primer on FreeBSD drivers (maybe a bit dated, but it 
still applies).

-Henrik W Lund



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?40FA239C.8060202>