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>
index | next in thread | previous in thread | raw e-mail
[-- Attachment #1 --] On Tue, Jul 30, 2024, 4:50 AM Poul-Henning Kamp <phk@phk.freebsd.dk> wrote: > -------- > Dag-Erling Smørgrav 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=bar work, while device foo=bar does not. For options like filemon that conditionally include whole files without ifdefs elsewhere, there's no difference. Warner -- > 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 incompetence. > > [-- Attachment #2 --] <div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Jul 30, 2024, 4:50 AM Poul-Henning Kamp <<a href="mailto:phk@phk.freebsd.dk">phk@phk.freebsd.dk</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">--------<br> Dag-Erling Smørgrav writes:<br> <br> > There is very little difference between options and devices in kernel<br> > configuration files, but for what it's worth, filemon is a device, not<br> > an option.<br> <br> Apart from the internals of config(8) and it's input data, is there<br> any actual difference left ?<br></blockquote></div></div><div dir="auto"><br></div><div dir="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's grammer only lets option foo=bar work, while device foo=bar does not.</div><div dir="auto"><br></div><div dir="auto">For options like filemon that conditionally include whole files without ifdefs elsewhere, there's no difference. </div><div dir="auto"><br></div><div dir="auto">Warner</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"> -- <br> Poul-Henning Kamp | UNIX since Zilog Zeus 3.20<br> phk@FreeBSD.ORG | TCP/IP since RFC 956<br> FreeBSD committer | BSD since 4.3-tahoe <br> Never attribute to malice what can adequately be explained by incompetence.<br> <br> </blockquote></div></div></div>help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CANCZdfoQyt4rS=C39UQRA5hBUwQDrhZ2fimWHhiLKrLR2iyB=w>
