you can also find samples in /usr/share/examples/drivers. These may be slightly broken in 4.x
On Wed, 16 Jun 1999, Greg Lehey wrote: > [moved to -hackers; this is more appropriate there] > > On Tuesday, 15 June 1999 at 20:51:59 +0300, [email protected] wrote: > > > > Hi All! > > > > I'm looking to write device drivers for FreeBSD. To this end, I'm searching > > for a Driver-Kernel interface reference manual for FreeBSD (ordinary BSD > > should do). (You know, a reference that documents all the low-level library > > calls and such.) I have one for SVR4 but I'm having trouble finding one for > > BSD. Anyone know of one? > > There's nothing that corresponds directly to the System V DDI/DKI > manual. Some (but unfortunately not all) kernel functions and > structures are described in section 9 of the manual. Look at intro(9) > for a start. There's also a tutorial at > http://www.freebsd.org/tutorials/ddwg/ddwg.html. But you'll find that > you'll have to read a lot of other driver code before you get your > driver finished. > > Greg > -- > See complete headers for address, home page and phone numbers > finger [email protected] for PGP public key > > > To Unsubscribe: send mail to [email protected] > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to [email protected] with "unsubscribe freebsd-hackers" in the body of the message

