From owner-freebsd-hackers Wed Mar 10 18:24:51 1999 Delivered-To: freebsd-hackers@freebsd.org Received: from alpo.whistle.com (alpo.whistle.com [207.76.204.38]) by hub.freebsd.org (Postfix) with ESMTP id CF0AA151B5 for ; Wed, 10 Mar 1999 18:24:49 -0800 (PST) (envelope-from julian@whistle.com) Received: (from daemon@localhost) by alpo.whistle.com (8.8.5/8.8.5) id SAA05153; Wed, 10 Mar 1999 18:20:41 -0800 (PST) Received: from current1.whistle.com(207.76.205.22) via SMTP by alpo.whistle.com, id smtpdqy5151; Thu Mar 11 02:20:32 1999 Date: Wed, 10 Mar 1999 18:20:29 -0800 (PST) From: Julian Elischer To: Wayne Cuddy Cc: FreeBSD Hackers List Subject: Re: new to driver coding In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG check out /usr/share.examples/drivers/psuedo[mumble] this is a shellscript that writes a dummy driver, and even links it into the kernel and compile sit for you.. edit to taste.. (I haven't run it for 6 months so it may need a few slight cleanups to work on a new system) julian On Wed, 10 Mar 1999, Wayne Cuddy wrote: > > > I have been reading any information I can find, which is very little, on > writing unix device drivers. Specifically I would like information on > FreeBSD;) > > I really want to start simple by writing a character driver that is not > attached to a REAL device but just holds on to some memory and allows me to > writing some bytes in (write()) and read them back (read()). > > I don't think this will be very difficult but I need some detailed information > specific to FreeBDS on what header files I need to include and how to build my > driver as part of the kernel. What directory should I build my driver in? > What entry point will the kernel call when the system boots so I can print a > pretty little string from my driver showing a sample initialization. > > > I am kinda in the dark here to specifics of this so ALL help is greatly > appreciated. > > Thanks, > Wayne > > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-hackers" in the body of the message > To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message