Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 30 Jul 2024 08:54:32 -0600
From:      Warner Losh <imp@bsdimp.com>
To:        Poul-Henning Kamp <phk@phk.freebsd.dk>
Cc:        =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= <des@freebsd.org>,  Gary Jennejohn <garyj@gmx.de>, FreeBSD Current <freebsd-current@freebsd.org>
Subject:   Re: filemon
Message-ID:  <CANCZdfoQyt4rS=C39UQRA5hBUwQDrhZ2fimWHhiLKrLR2iyB=w@mail.gmail.com>
In-Reply-To: <202407301049.46UAnrXX011101@critter.freebsd.dk>
References:  <ZqT6_a_0F8DCUsBm@int21h> <CAFDf7UKxhSu%2BqMGV1KahrSX9ho8vFut4avxNVX4D8QGa6%2B%2BTjQ@mail.gmail.com> <20240727170122.675f6bfe@ernst.home> <865xsn6ya9.fsf@ltc.des.dev> <202407301049.46UAnrXX011101@critter.freebsd.dk>

next in thread | previous in thread | raw e-mail | index | archive | help
--0000000000006c6c17061e7828e6
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

On Tue, Jul 30, 2024, 4:50=E2=80=AFAM Poul-Henning Kamp <phk@phk.freebsd.dk=
> wrote:

> --------
> Dag-Erling Sm=C3=B8rgrav writes:
>
> > There is very little difference between options and devices in kernel
> > configuration files, but for what it's worth, filemon is a device, not
> > an option.
>
> Apart from the internals of config(8) and it's input data, is there
> any actual difference left ?
>

DEV_FOO is defined instead of FOO in the opt_*.h file is the only
difference since otherwise both are added. I think that config's grammer
only lets option foo=3Dbar work, while device foo=3Dbar does not.

For options like filemon that conditionally include whole files without
ifdefs elsewhere, there's no difference.

Warner

--=20
> Poul-Henning Kamp       | UNIX since Zilog Zeus 3.20
> phk@FreeBSD.ORG         | TCP/IP since RFC 956
> FreeBSD committer       | BSD since 4.3-tahoe
> Never attribute to malice what can adequately be explained by incompetenc=
e.
>
>

--0000000000006c6c17061e7828e6
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto"><div><br><br><div class=3D"gmail_quote"><div dir=3D"ltr" =
class=3D"gmail_attr">On Tue, Jul 30, 2024, 4:50=E2=80=AFAM Poul-Henning Kam=
p &lt;<a href=3D"mailto:phk@phk.freebsd.dk">phk@phk.freebsd.dk</a>&gt; wrot=
e:<br></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;bo=
rder-left:1px #ccc solid;padding-left:1ex">--------<br>
Dag-Erling Sm=C3=B8rgrav writes:<br>
<br>
&gt; There is very little difference between options and devices in kernel<=
br>
&gt; configuration files, but for what it&#39;s worth, filemon is a device,=
 not<br>
&gt; an option.<br>
<br>
Apart from the internals of config(8) and it&#39;s input data, is there<br>
any actual difference left ?<br></blockquote></div></div><div dir=3D"auto">=
<br></div><div dir=3D"auto">DEV_FOO is defined instead of FOO in the opt_*.=
h file is the only difference since otherwise both are added. I think that =
config&#39;s grammer only lets option foo=3Dbar work, while device foo=3Dba=
r does not.</div><div dir=3D"auto"><br></div><div dir=3D"auto">For options =
like filemon that conditionally include whole files without ifdefs elsewher=
e, there&#39;s no difference.=C2=A0</div><div dir=3D"auto"><br></div><div d=
ir=3D"auto">Warner</div><div dir=3D"auto"><br></div><div dir=3D"auto"><div =
class=3D"gmail_quote"><blockquote class=3D"gmail_quote" style=3D"margin:0 0=
 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
-- <br>
Poul-Henning Kamp=C2=A0 =C2=A0 =C2=A0 =C2=A0| UNIX since Zilog Zeus 3.20<br=
>
phk@FreeBSD.ORG=C2=A0 =C2=A0 =C2=A0 =C2=A0 =C2=A0| TCP/IP since RFC 956<br>
FreeBSD committer=C2=A0 =C2=A0 =C2=A0 =C2=A0| BSD since 4.3-tahoe=C2=A0 =C2=
=A0 <br>
Never attribute to malice what can adequately be explained by incompetence.=
<br>
<br>
</blockquote></div></div></div>

--0000000000006c6c17061e7828e6--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoQyt4rS=C39UQRA5hBUwQDrhZ2fimWHhiLKrLR2iyB=w>