Date: Fri, 11 May 2001 14:09:37 +0100 From: Brian Somers <brian@Awfulhak.org> To: "Jayesh Krishna" <jayeshkrishna@hotmail.com> Cc: julian@elischer.org, freebsd-hackers@FreeBSD.ORG, brian@Awfulhak.org Subject: Re: Writing device drivers (was: help me please) Message-ID: <200105111309.f4BD9e692990@hak.lan.Awfulhak.org> In-Reply-To: Message from "Jayesh Krishna" <jayeshkrishna@hotmail.com> of "Fri, 11 May 2001 18:27:14 %2B0530." <F55yLZ86BSqEMDpCnJ7000027fe@hotmail.com>
index | next in thread | previous in thread | raw e-mail
> 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 <brian@Awfulhak.org> <brian@[uk.]FreeBSD.org>
<http://www.Awfulhak.org> <brian@[uk.]OpenBSD.org>
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
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200105111309.f4BD9e692990>
