Subject: Re: kernel-internal interface changes?
To: der Mouse <mouse@Rodents.Montreal.QC.CA>
From: Quentin Garnier <cube@cubidou.net>
List: tech-kern
Date: 03/25/2005 10:53:38
--GTGEtWEe6jD60dxL
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Fri, Mar 25, 2005 at 04:39:44AM -0500, der Mouse wrote:
> >> (Out of idle curiosity, if you have the time and inclination to
> >> satisfy it - and this may well be something that I don't know only
> >> because I'm at home and all this stuff is at work - how do all the
> >> kernel config bits get into sys/conf/files and sys/conf/majors and
> >> such when you use the package?  I specifically went looking [...].)
>=20
> > They don't.
>=20
> > All the config(8) stuff hardwire the autoconf(9) structures in the
> > kernel binary.  When tap(4) is built as a LKM, there are routines to
> > attach to and detach from the autoconf(9) framework dynamically that
> > are used at appropriate times.
>=20
> Sure.  But what about when it's compiled into the kernel, rather than
> modload(8)ed?  Is that something the package can't do?  Have I already
> stumbled across the correct tack to take - dropping

The package provides a LKM, and only that.

> if_tap{,_stub}.{c,h} into the kernel source tree and adding entries
> manually to sys/conf/files and sys/conf/majors - and just botched it
> slightly in respects you explained last message?

You're hacking your way in.  It works, but as you discovered you have
to know how config(8) works.

--=20
Quentin Garnier - cube@cubidou.net - cube@NetBSD.org
"When I find the controls, I'll go where I like, I'll know where I want
to be, but maybe for now I'll stay right here on a silent sea."
KT Tunstall, Silent Sea, Eye to the Telescope, 2004.

--GTGEtWEe6jD60dxL
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.6 (NetBSD)

iQEVAwUBQkPfotgoQloHrPnoAQK3Kgf/T7CrIzArZjEMt54DiYoUZGAKrH9m7pHb
m+8BPggcXNeUCmE75tR/8eccbUUk6+BFfPSZT8CNiz3JpC3vFHMicPpySWjiBJFt
C6KP0g6JYPAVJRCFcEwxCUGXXmjRdNvgJJixFxp9nz9wbBkkc1OFC3DkP37XC7Zy
XhoYlaFByrTCZ+UpABfgl7sorrBCJK7d/MF5ajvEJWGZUKk70vwYPDT4fyxqUwAs
Ne1PckoiH2SHTOJDo2rmzKQB23nUQcsvLmq/b1/WSpw6xWUNlRUuXneowJF0DOFV
LWVxn1oCn5zzAOjLfcz1ED4LlHsav0GHMaEdqvTZ5h/di3M7tWkXFw==
=aFH2
-----END PGP SIGNATURE-----

--GTGEtWEe6jD60dxL--