From nobody Tue Jul 30 14:54:32 2024 X-Original-To: freebsd-current@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4WYJD50K9Lz5S6G9 for ; Tue, 30 Jul 2024 14:54:45 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Received: from mail-pj1-x1031.google.com (mail-pj1-x1031.google.com [IPv6:2607:f8b0:4864:20::1031]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (2048 bits) client-digest SHA256) (Client CN "smtp.gmail.com", Issuer "WR4" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4WYJD45kmsz55FL for ; Tue, 30 Jul 2024 14:54:44 +0000 (UTC) (envelope-from wlosh@bsdimp.com) Authentication-Results: mx1.freebsd.org; none Received: by mail-pj1-x1031.google.com with SMTP id 98e67ed59e1d1-2cd5d6b2581so2986681a91.2 for ; Tue, 30 Jul 2024 07:54:44 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=bsdimp-com.20230601.gappssmtp.com; s=20230601; t=1722351283; x=1722956083; darn=freebsd.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=By8YCPyC5BJm/r6Pe6tSY/XtihKpcUFJux8FtAHK0KA=; b=SlwqTxCBWX2ThXtSISoPT5vCF/HGK5l9S/fdX4SBpZxKwGPaz3hjwEu6pDFdyoJgtZ e013z8V9Z9hTWZf5uQI7xWjUf+Ncpjuila/fSBolwSnIlqj7lNUzbIylDgWVZnb7TKuJ F9mFp5ZMm3WRdX6RVEt5VulOObNilBfECLxV1WUyv70QBUCkC6TiaTxBMLLO2UyQtLaM 2cfsNNP/IEEBAjoD3zpARyv+5rd51kSgbnYsB05WTgkupVjrCS1sAvfJQZQhjyJac6J6 Mef3QRot5ZpeGgMbYkHp3IzOGCA+WBSM/a1gdfeDmt47uHAPgXd6djM65qIZR9fw2PjK WwrQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1722351283; x=1722956083; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=By8YCPyC5BJm/r6Pe6tSY/XtihKpcUFJux8FtAHK0KA=; b=TYRBSEGVHnkat8LdyvNWD3gPQv+sVnsz4zyNg2BbYoNZiO4heQ/3TOcmeAYbT4lkB1 JfvxyFXTngFcpPqsk0ruC8NgVIyY9QrmW85zggOD3DztJ0pIZl0z7xiGP01shhqV9Hlg KhumdtlCbc69x0WDqwdpXTKG5cAmcY74xchhAvArpnSLJzzBnw8DWocjc8017eZgtrmA Bgyr3zvOKHTyiRJbqjp3woj2pOXa+eIYojeUCMWP0X8afD5DJMAIeqGBG30k7A6duxm0 T4QZyB6jD70mJTwZcAUUMQOpz5Ka5ap3cUrdMKERw+1fESILn8YPrutIn5t5MPmjD7L2 OSYg== X-Forwarded-Encrypted: i=1; AJvYcCVk+U8O2Ou++MmTWnrtXZ45WOlcsHE6HDGRSWAW4WnU1opfvYGYH226+hdZj1LeWKUZ/DXco0/uxAGzA8pW1N/QVDG9su6OPMjm43o= X-Gm-Message-State: AOJu0YwsddZOIgpyMjK6PEKgwcdooVv6U6Stpj5CAELzDAFc6r/SzxgT bB0/Y3ZrGUgC3S6tX+wTeliSVakC7gmL3Jrk0YAkfQTxn0m88A/FjRld56BEbQHezksMRo/kySP ofDoqnIXPN35/1ku/MVsMw+v3LLwxMN/8gpwREA== X-Google-Smtp-Source: AGHT+IFqE3azU6VmGurM60zla1uBs19XiN4DkymVLxIIbYWQusQ8dM1me+cAe/KNerhSosTBvVJ/vHB5XaKiYxD6w3w= X-Received: by 2002:a17:90a:b304:b0:2c9:a88d:26f2 with SMTP id 98e67ed59e1d1-2cf7e86eac7mr9466707a91.36.1722351283358; Tue, 30 Jul 2024 07:54:43 -0700 (PDT) List-Id: Discussions about the use of FreeBSD-current List-Archive: https://lists.freebsd.org/archives/freebsd-current List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-current@FreeBSD.org MIME-Version: 1.0 References: <20240727170122.675f6bfe@ernst.home> <865xsn6ya9.fsf@ltc.des.dev> <202407301049.46UAnrXX011101@critter.freebsd.dk> In-Reply-To: <202407301049.46UAnrXX011101@critter.freebsd.dk> From: Warner Losh Date: Tue, 30 Jul 2024 08:54:32 -0600 Message-ID: Subject: Re: filemon To: Poul-Henning Kamp Cc: =?UTF-8?Q?Dag=2DErling_Sm=C3=B8rgrav?= , Gary Jennejohn , FreeBSD Current Content-Type: multipart/alternative; boundary="0000000000006c6c17061e7828e6" X-Spamd-Bar: ---- X-Rspamd-Pre-Result: action=no action; module=replies; Message is reply to one we originated X-Spamd-Result: default: False [-4.00 / 15.00]; REPLY(-4.00)[]; ASN(0.00)[asn:15169, ipnet:2607:f8b0::/32, country:US] X-Rspamd-Queue-Id: 4WYJD45kmsz55FL --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 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


On Tue, Jul 30, 2024, 4:50=E2=80=AFAM Poul-Henning Kam= p <phk@phk.freebsd.dk> wrot= e:
--------
Dag-Erling Sm=C3=B8rgrav writes:

> 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
> 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=3Dba= r does not.

For options = like filemon that conditionally include whole files without ifdefs elsewher= e, there's no difference.=C2=A0

Warner

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

--0000000000006c6c17061e7828e6--