From owner-freebsd-hackers Fri May 11 5:57:18 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from hotmail.com (f55.pav1.hotmail.com [64.4.31.55]) by hub.freebsd.org (Postfix) with ESMTP id EDCA137B423 for ; Fri, 11 May 2001 05:57:14 -0700 (PDT) (envelope-from jayeshkrishna@hotmail.com) Received: from mail pickup service by hotmail.com with Microsoft SMTPSVC; Fri, 11 May 2001 05:57:14 -0700 Received: from 32.97.136.233 by pv1fd.pav1.hotmail.msn.com with HTTP; Fri, 11 May 2001 12:57:14 GMT X-Originating-IP: [32.97.136.233] From: "Jayesh Krishna" To: julian@elischer.org Cc: freebsd-hackers@freebsd.org Subject: Re: Writing device drivers (was: help me please) Date: Fri, 11 May 2001 18:27:14 +0530 Mime-Version: 1.0 Content-Type: text/plain; format=flowed Message-ID: X-OriginalArrivalTime: 11 May 2001 12:57:14.0821 (UTC) FILETIME=[E6D63750:01C0DA19] Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG hi, Thanx Julian for pointing me to the tunnel pseudo-driver. But my major concern was regarding linking the driver to the kernel( i am trying to use static linking stuff). I am presently doing a major grep on "tun" 8-) It would be great if i could get some docs regding which files have to be modified so that the kernel realises my driver. So far i could figure out that the below files have to be modified( did i leave anything ????) /usr/src/sys/i386/conf/* /usr/src/sys/conf/majors /usr/src/sys/conf/files Do i really have to modify the /usr/src/sys/modules/* files??? jayesh >From: Julian Elischer >To: Brian Somers >CC: Greg Lehey , Jayesh Krishna >, freebsd-hackers@FreeBSD.ORG >Subject: Re: Writing device drivers (was: help me please) >Date: Thu, 10 May 2001 12:51:42 -0700 > >Brian Somers wrote: > > > > > On Wednesday, 9 May 2001 at 10:40:50 +0530, Jayesh Krishna wrote: > > > > Hi guys... > > > > I am comfortable with Linux Device Drivers. Presently I am trying > > > > to write some pseudo-drivers in FreeBSD(4.2-Release). I tried out > > > > make_pseudo_driver.sh > > > > in the /usr/share/examples/drivers but it does not work :-( I also > > > > went through the "FreeBSD Device Driver Writer's Guide" by Eric L. > > > > Hernes but it seems to be outdated :-( > > > > Please someone point me out to some docs regarding writing >device > > > > drivers in FreeBSD.... > > > > > > "UTSL". Take a look at a similar driver and get to understand it. > > > I'm afraid that this is an area which is woefully undocumented. > > > > > > You'll also get more replies if you put a useful text on the Subject: > > > line. > > > > You should probably tell julian@ about the problems you have with > > make_pseudo_driver.sh. > >The pseudo one is known to be WAYYYYYYY out of date... > >the other one there (make_device_driver.sh) >is more or less up to date. > > > > > > Greg > > > -- > > > Finger grog@lemis.com for PGP public key > > > See complete headers for address and phone numbers > > > > -- > > Brian > > > > > > Don't _EVER_ lose your sense of humour ! > > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > > with "unsubscribe freebsd-hackers" in the body of the message > >-- > __--_|\ Julian Elischer > / \ julian@elischer.org > ( OZ ) World tour 2000-2001 >---> X_.---._/ > v _________________________________________________________________________ Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message