From owner-freebsd-hackers Fri May 11 6: 9:49 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from Awfulhak.org (awfulhak.demon.co.uk [194.222.196.252]) by hub.freebsd.org (Postfix) with ESMTP id 79FF037B422 for ; Fri, 11 May 2001 06:09:46 -0700 (PDT) (envelope-from brian@Awfulhak.org) Received: from hak.lan.Awfulhak.org (root@hak.lan.Awfulhak.org [172.16.0.12]) by Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4BD9i325002; Fri, 11 May 2001 14:09:44 +0100 (BST) (envelope-from brian@lan.Awfulhak.org) Received: from hak.lan.Awfulhak.org (brian@localhost [127.0.0.1]) by hak.lan.Awfulhak.org (8.11.3/8.11.3) with ESMTP id f4BD9e692990; Fri, 11 May 2001 14:09:41 +0100 (BST) (envelope-from brian@hak.lan.Awfulhak.org) Message-Id: <200105111309.f4BD9e692990@hak.lan.Awfulhak.org> X-Mailer: exmh version 2.3.1 01/18/2001 with nmh-1.0.4 To: "Jayesh Krishna" Cc: julian@elischer.org, freebsd-hackers@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: Writing device drivers (was: help me please) In-Reply-To: Message from "Jayesh Krishna" of "Fri, 11 May 2001 18:27:14 +0530." Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Date: Fri, 11 May 2001 14:09:37 +0100 From: Brian Somers 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 That's about it. > Do i really have to modify the /usr/src/sys/modules/* files??? Only if you want a module (and have a MODULE_DECLARE in your source). I would suggest that it's worthwhile spending the time making your code modular - it makes development easier and leads to better practices of ensuring that your detach cleans up all resources etc. > jayesh -- 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